AppHarbor.Tests.Commands.DeleteAppCommandTest.ShouldDeleteFromApi C# (CSharp) Method

ShouldDeleteFromApi() private method

private ShouldDeleteFromApi ( [ appharborClient, [ applicationConfiguration, DeleteAppCommand command, string id ) : void
appharborClient [
applicationConfiguration [
command AppHarbor.Commands.DeleteAppCommand
id string
return void
        public void ShouldDeleteFromApi([Frozen]Mock<IAppHarborClient> appharborClient,
			[Frozen]Mock<IApplicationConfiguration> applicationConfiguration,
			DeleteAppCommand command,
			string id)
        {
            applicationConfiguration.Setup(x => x.GetApplicationId()).Returns(id);
            appharborClient.Setup(x => x.DeleteApplication(id));

            command.Execute(new string[0]);

            appharborClient.VerifyAll();
            applicationConfiguration.VerifyAll();
            applicationConfiguration.Verify(x => x.RemoveConfiguration());
        }
DeleteAppCommandTest