* Found the meta tags on youtube... in the body and updated the client to pull them out. * Updated namespace on test * I think formatting cleaned this up * Seed migrations have been cleaned up to get my configs out and moving them to a script. * Updates to the ISourcesRepository.cs to allow for new calls to the db. * formatter * Db models updated. Icon now can track sourceID and source can have a youtube id. * Updated api logger to ignore otel if no connection string given. * updated docker init so I can run migrations from the image * seed was updated to reflect the new api changes * Updated the SourcesController.cs to grab icon data. * Added reddit const values * Minor changes to HtmlPageReader.cs * Jobs are now pulling in the config section to bundle values. * Removed youtube api, not needed anymore. * test updates
27 lines
646 B
C#
27 lines
646 B
C#
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);
|
|
}
|
|
} |