AppHarbor.Tests.Commands.CreateAppCommandTest.ShouldPrintSuccessMessageAfterCreatingApplication C# (CSharp) Method

ShouldPrintSuccessMessageAfterCreatingApplication() private method

private ShouldPrintSuccessMessageAfterCreatingApplication ( [ client, [ writer, Mock command, string applicationName, string applicationSlug ) : void
client [
writer [
command Mock
applicationName string
applicationSlug string
return void
        public void ShouldPrintSuccessMessageAfterCreatingApplication([Frozen]Mock<IAppHarborClient> client, [Frozen]Mock<TextWriter> writer, Mock<CreateAppCommand> command, string applicationName, string applicationSlug)
        {
            client.Setup(x => x.CreateApplication(applicationName, null)).Returns(new CreateResult { Id = applicationSlug });

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

            writer.Verify(x => x.WriteLine("Created application \"{0}\" | URL: https://{0}.apphb.com", applicationSlug), Times.Once());
        }