public void ShouldRemoveHostname(string hostname, [Frozen] Mock <IApplicationConfiguration> applicationConfiguration, [Frozen] Mock <IAppHarborClient> client, RemoveHostnameCommand command, string applicationId) { applicationConfiguration.Setup(x => x.GetApplicationId()).Returns(applicationId); command.Execute(new string[] { hostname }); client.Verify(x => x.RemoveHostname(applicationId, hostname)); }
public void ShouldThrowIfNoArguments(RemoveHostnameCommand command) { Assert.Throws <CommandException>(() => command.Execute(new string[0])); }