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

ShouldCreateApplicationWithOnlyName() private method

private ShouldCreateApplicationWithOnlyName ( [ client, CreateAppCommand command ) : void
client [
command AppHarbor.Commands.CreateAppCommand
return void
        public void ShouldCreateApplicationWithOnlyName([Frozen]Mock<IAppHarborClient> client, CreateAppCommand command)
        {
            var arguments = new string[] { "foo" };
            command.Execute(arguments);
            client.Verify(x => x.CreateApplication(arguments.First(), arguments.Skip(1).FirstOrDefault()), Times.Once());
        }