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/ConfigCommandsTest.cs

30 lines
869 B

using Recyclarr.Cli.Console.Commands;
using Recyclarr.Repo;
namespace Recyclarr.Cli.Tests.Console.Commands;
[TestFixture]
[Parallelizable(ParallelScope.All)]
public class ConfigCommandsTest
{
[Test, AutoMockData]
public async Task Repo_update_is_called_on_config_list(
[Frozen] IMultiRepoUpdater updater,
ConfigListLocalCommand sut)
{
await sut.ExecuteAsync(default!, new ConfigListLocalCommand.CliSettings());
await updater.ReceivedWithAnyArgs().UpdateAllRepositories(default);
}
[Test, AutoMockData]
public async Task Repo_update_is_called_on_config_create(
[Frozen] IMultiRepoUpdater updater,
ConfigCreateCommand sut)
{
await sut.ExecuteAsync(default!, new ConfigCreateCommand.CliSettings());
await updater.ReceivedWithAnyArgs().UpdateAllRepositories(default);
}
}