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
833 B
29 lines
833 B
using Recyclarr.Cli.Console.Commands;
|
|
using Recyclarr.Repo;
|
|
|
|
namespace Recyclarr.Cli.Tests.Console.Commands;
|
|
|
|
[TestFixture]
|
|
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);
|
|
}
|
|
}
|