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.
26 lines
701 B
26 lines
701 B
using Recyclarr.Cli.Processors.Config;
|
|
using Recyclarr.TestLibrary.Autofac;
|
|
using Recyclarr.TrashLib.Config.Listers;
|
|
|
|
namespace Recyclarr.Cli.Tests.Processors;
|
|
|
|
[TestFixture]
|
|
[Parallelizable(ParallelScope.All)]
|
|
public class ConfigListProcessorTest
|
|
{
|
|
[Test]
|
|
[InlineAutoMockData(ConfigCategory.Templates)]
|
|
public void List_templates_invokes_correct_lister(
|
|
ConfigCategory category,
|
|
[Frozen(Matching.ImplementedInterfaces)] StubAutofacIndex<ConfigCategory, IConfigLister> configListers,
|
|
IConfigLister lister,
|
|
ConfigListProcessor sut)
|
|
{
|
|
configListers.Add(category, lister);
|
|
|
|
sut.Process(category);
|
|
|
|
lister.Received().List();
|
|
}
|
|
}
|