Rename WithCommand* to AddCommand* on CliApplicationBuilder

This commit is contained in:
Alexey Golub
2019-08-18 17:21:25 +03:00
parent 45c2b9c4e0
commit 04415cbfc1
8 changed files with 24 additions and 24 deletions

View File

@@ -204,7 +204,7 @@ namespace CliFx.Tests
public async Task RunAsync_Test(IReadOnlyList<Type> commandTypes, IReadOnlyList<string> commandLineArguments)
{
// Arrange
var application = new CliApplicationBuilder().WithCommands(commandTypes).Build();
var application = new CliApplicationBuilder().AddCommands(commandTypes).Build();
// Act
var exitCodeValue = await application.RunAsync(commandLineArguments);
@@ -218,7 +218,7 @@ namespace CliFx.Tests
public async Task RunAsync_Negative_Test(IReadOnlyList<Type> commandTypes, IReadOnlyList<string> commandLineArguments)
{
// Arrange
var application = new CliApplicationBuilder().WithCommands(commandTypes).Build();
var application = new CliApplicationBuilder().AddCommands(commandTypes).Build();
// Act
var exitCodeValue = await application.RunAsync(commandLineArguments);