You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
713 B
24 lines
713 B
using Autofac.Features.Indexed;
|
|
using Recyclarr.Cli.TestLibrary;
|
|
using Recyclarr.TrashLib.Config.Listers;
|
|
|
|
namespace Recyclarr.TrashLib.Tests.Config;
|
|
|
|
[TestFixture]
|
|
[Parallelizable(ParallelScope.All)]
|
|
public class ConfigAutofacModuleTest : IntegrationFixture
|
|
{
|
|
private static IEnumerable<ConfigListCategory> AllConfigListCategories()
|
|
{
|
|
return Enum.GetValues<ConfigListCategory>();
|
|
}
|
|
|
|
[TestCaseSource(nameof(AllConfigListCategories))]
|
|
public void All_list_category_types_registered(ConfigListCategory category)
|
|
{
|
|
var sut = Resolve<IIndex<ConfigListCategory, IConfigLister>>();
|
|
var result = sut.TryGetValue(category, out _);
|
|
result.Should().BeTrue();
|
|
}
|
|
}
|