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

27 lines
646 B
C#
Raw Normal View History

using Newsbot.Collector.Database.Repositories;
using Newsbot.Collector.Domain.Models;
namespace Newsbot.Collector.Tests.Tables;
public class SourcesTableTests
{
[Fact]
public void NewRecordTest()
{
var client = new SourcesTable("");
var m = new SourceModel
{
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);
}
}