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/tests/Recyclarr.Cli.Tests/Console/Commands/ListCommandsTest.cs

40 lines
1.2 KiB

using Recyclarr.Cli.Console.Commands;
using Recyclarr.Repo;
namespace Recyclarr.Cli.Tests.Console.Commands;
[TestFixture]
[Parallelizable(ParallelScope.All)]
public class ListCommandsTest
{
[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);
}
[Test, AutoMockData]
public async Task Repo_update_is_called_on_list_release_profiles(
[Frozen] IMultiRepoUpdater updater,
ListReleaseProfilesCommand sut)
{
await sut.ExecuteAsync(default!, new ListReleaseProfilesCommand.CliSettings());
await updater.ReceivedWithAnyArgs().UpdateAllRepositories(default);
}
}