18 lines
380 B
C#
18 lines
380 B
C#
|
using jtom38.Newsbot.Domain.Models;
|
||
|
using jtom38.Newsbot.Services;
|
||
|
|
||
|
namespace Newsbot.Tests.Services;
|
||
|
|
||
|
public class ConfigClientTests
|
||
|
{
|
||
|
[Fact]
|
||
|
public async Task CanLoadConfig()
|
||
|
{
|
||
|
var cfg = await ConfigClient.LoadAsync();
|
||
|
cfg = cfg ??= new ConfigModel();
|
||
|
if (cfg.Uri == "")
|
||
|
{
|
||
|
Assert.Fail("Uri was missing");
|
||
|
}
|
||
|
}
|
||
|
}
|