27 lines
605 B
C#
27 lines
605 B
C#
|
|
||
|
|
||
|
using Newsbot.Collector.Database.Repositories;
|
||
|
using Newsbot.Collector.Domain.Models;
|
||
|
|
||
|
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);
|
||
|
}
|
||
|
}
|