Newsbot.Collector/Newsbot.Collector.Tests/Tables/SourcesTableTests.cs

28 lines
688 B
C#

using Newsbot.Collector.Database.Repositories;
using Newsbot.Collector.Domain.Entities;
using Newsbot.Collector.Domain.Models;
namespace Newsbot.Collector.Tests.Tables;
public class SourcesTableTests
{
[Fact]
public void NewRecordTest()
{
var client = new SourcesTable("");
var m = new SourceEntity
{
Id = Guid.NewGuid(),
Site = "Testing",
Name = "Testing",
Source = "Testing",
Type = "Testing",
Value = "Testing",
Enabled = false,
Url = "Testing",
Tags = "Unit, Testing",
Deleted = false
};
client.New(m);
}
}