public void SetAzureVMChefExtensionValidateMissingClientRBAndChefServerUrlOrValidationClientName()
        {
            var setChefExtension = new SetAzureVMChefExtensionCommandStub()
            {
                CommandRuntime = mockCommandRuntime,
                VM = mockIPersistentVM,
                Version = "11.10",
                ValidationPem = tmpfile
            };

            setChefExtension.ExecuteCommand();
        }
        public void SetAzureVMChefExtensionExecuteChefCommand()
        {
            var setChefExtension = new SetAzureVMChefExtensionCommandStub()
            {
                CommandRuntime = mockCommandRuntime,
                VM = mockIPersistentVM,
                Version = "11.10",
                ValidationPem =  tmpfile,
                ClientRb = tmpfile
            };

            setChefExtension.ExecuteCommand();
            Assert.AreEqual(1, mockCommandRuntime.OutputPipeline.Count, "One item should be in the output pipeline");
        }
        public void SetAzureVMChefExtensionValidateGivenChefServerUrlAndMissingChefValidationClientName()
        {
            var setChefExtension = new SetAzureVMChefExtensionCommandStub()
            {
                CommandRuntime = mockCommandRuntime,
                VM = mockIPersistentVM,
                Version = "11.10",
                ValidationPem = tmpfile,
                ChefServerUrl = "https://testchefserverurl/testorg/"

            };

            setChefExtension.ExecuteCommand();
        }