AppHarbor.Tests.Commands.LinkAppCommandTest.ShouldThrowIfApplicationCouldntBeFound C# (CSharp) Method

ShouldThrowIfApplicationCouldntBeFound() private method

private ShouldThrowIfApplicationCouldntBeFound ( [ applicationConfiguration, [ appharborClient, LinkAppCommand command ) : void
applicationConfiguration [
appharborClient [
command AppHarbor.Commands.LinkAppCommand
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()));
        }