AppHarbor.Tests.Commands.AddHostnameCommandTest.ShouldAddHostname C# (CSharp) Method

ShouldAddHostname() private method

private ShouldAddHostname ( string hostname, [ applicationConfiguration, [ client, AddHostnameCommand command, string applicationId ) : void
hostname string
applicationConfiguration [
client [
command AppHarbor.Commands.AddHostnameCommand
applicationId string
return void
        public void ShouldAddHostname(string hostname,
			[Frozen]Mock<IApplicationConfiguration> applicationConfiguration,
			[Frozen]Mock<IAppHarborClient> client,
			AddHostnameCommand command, string applicationId)
        {
            applicationConfiguration.Setup(x => x.GetApplicationId()).Returns(applicationId);

            command.Execute(new string[] { hostname });

            client.Verify(x => x.CreateHostname(applicationId, hostname));
        }