2023-02-19 21:39:03 -08:00
|
|
|
using Newsbot.Collector.Database.Repositories;
|
|
|
|
using Newsbot.Collector.Domain.Models;
|
|
|
|
|
2023-03-31 22:49:39 -07:00
|
|
|
namespace Newsbot.Collector.Tests.Tables;
|
|
|
|
|
2023-02-19 21:39:03 -08:00
|
|
|
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);
|
|
|
|
}
|
|
|
|
}
|