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.
recyclarr/src/Recyclarr.TrashLib.Tests/Processors/ConfigListProcessorTest.cs

26 lines
716 B

using Recyclarr.TestLibrary.Autofac;
using Recyclarr.TrashLib.Config.Listers;
using Recyclarr.TrashLib.Processors;
namespace Recyclarr.TrashLib.Tests.Processors;
[TestFixture]
[Parallelizable(ParallelScope.All)]
public class ConfigListProcessorTest
{
[Test]
[InlineAutoMockData(ConfigListCategory.Templates)]
public void List_templates_invokes_correct_lister(
ConfigListCategory category,
[Frozen(Matching.ImplementedInterfaces)] StubAutofacIndex<ConfigListCategory, IConfigLister> configListers,
IConfigLister lister,
ConfigListProcessor sut)
{
configListers.Add(category, lister);
sut.Process(category);
lister.Received().List();
}
}