AppHarbor.Tests.Commands.ConfigCommandTest.ShouldAddConfigurationVariables C# (CSharp) Method

ShouldAddConfigurationVariables() private method

private ShouldAddConfigurationVariables ( [ applicationConfiguration, [ client, [ writer, ConfigCommand command, string applicationId ) : void
applicationConfiguration [
client [
writer [
command AppHarbor.Commands.ConfigCommand
applicationId string
return void
        public void ShouldAddConfigurationVariables([Frozen]Mock<IApplicationConfiguration> applicationConfiguration,
			[Frozen]Mock<IAppHarborClient> client,
			[Frozen]Mock<TextWriter> writer,
			ConfigCommand command, string applicationId)
        {
            applicationConfiguration.Setup(x => x.GetApplicationId()).Returns(applicationId);
            var configurationVariables = new List<ConfigurationVariable>
            {
                new ConfigurationVariable { Key = "foo", Value = "bar" },
                new ConfigurationVariable { Key = "baz", Value = "qux" },
            };

            client.Setup(x => x.GetConfigurationVariables(applicationId)).Returns(configurationVariables);

            command.Execute(new string[0]);

            foreach (var configurationVariable in configurationVariables)
            {
                writer.Verify(x => x.WriteLine("{0} => {1}", configurationVariable.Key, configurationVariable.Value));
            }
        }