2023-02-19 21:39:03 -08:00
|
|
|
using Newsbot.Collector.Database.Repositories;
|
2023-06-23 23:01:40 -07:00
|
|
|
using Newsbot.Collector.Domain.Entities;
|
2023-02-19 21:39:03 -08:00
|
|
|
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("");
|
2023-06-23 23:01:40 -07:00
|
|
|
var m = new SourceEntity
|
2023-02-19 21:39:03 -08:00
|
|
|
{
|
2023-06-23 23:01:40 -07:00
|
|
|
Id = Guid.NewGuid(),
|
2023-02-19 21:39:03 -08:00
|
|
|
Site = "Testing",
|
|
|
|
Name = "Testing",
|
|
|
|
Source = "Testing",
|
|
|
|
Type = "Testing",
|
|
|
|
Value = "Testing",
|
|
|
|
Enabled = false,
|
|
|
|
Url = "Testing",
|
|
|
|
Tags = "Unit, Testing",
|
|
|
|
Deleted = false
|
|
|
|
};
|
|
|
|
client.New(m);
|
|
|
|
}
|
|
|
|
}
|