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.
29 lines
846 B
29 lines
846 B
1 year ago
|
using Recyclarr.Cli.Console.Commands;
|
||
1 year ago
|
using Recyclarr.Repo;
|
||
1 year ago
|
|
||
|
namespace Recyclarr.Cli.Tests.Console.Commands;
|
||
|
|
||
|
[TestFixture]
|
||
1 year ago
|
public class ListCommandsTest
|
||
1 year ago
|
{
|
||
|
[Test, AutoMockData]
|
||
|
public async Task Repo_update_is_called_on_list_custom_formats(
|
||
|
[Frozen] IMultiRepoUpdater updater,
|
||
|
ListCustomFormatsCommand sut)
|
||
|
{
|
||
|
await sut.ExecuteAsync(default!, new ListCustomFormatsCommand.CliSettings());
|
||
|
|
||
|
await updater.ReceivedWithAnyArgs().UpdateAllRepositories(default);
|
||
|
}
|
||
|
|
||
|
[Test, AutoMockData]
|
||
|
public async Task Repo_update_is_called_on_list_qualities(
|
||
|
[Frozen] IMultiRepoUpdater updater,
|
||
|
ListQualitiesCommand sut)
|
||
|
{
|
||
|
await sut.ExecuteAsync(default!, new ListQualitiesCommand.CliSettings());
|
||
|
|
||
|
await updater.ReceivedWithAnyArgs().UpdateAllRepositories(default);
|
||
|
}
|
||
|
}
|