private ShouldThrowIfApplicationCouldntBeFound ( [ |
||
applicationConfiguration | [ |
|
appharborClient | [ |
|
command | ||
return | void |
public void ShouldThrowIfApplicationCouldntBeFound([Frozen]Mock<IApplicationConfiguration> applicationConfiguration,
[Frozen]Mock<IAppHarborClient> appharborClient,
LinkAppCommand command)
{
appharborClient.Setup(x => x.GetApplication(It.IsAny<string>())).Throws<ApiException>();
Assert.Throws<CommandException>(() => command.Execute(new List<string> { "foo" }.ToArray()));
}