Microsoft.WindowsAzure.Commands.Test.Utilities.Common.RMTestBase.SetupConfirmation C# (CSharp) Method

SetupConfirmation() public static method

Set up the command runtime to return true for all confirmation prompts
public static SetupConfirmation ( Mock mock ) : void
mock Mock The mock command runtiem to set up
return void
        public static void SetupConfirmation(Mock<ICommandRuntime> mock)
        {
            mock.Setup(f => f.ShouldProcess(It.IsAny<string>())).Returns(true);
            mock.Setup(f => f.ShouldProcess(It.IsAny<string>(), It.IsAny<string>())).Returns(true);
            mock.Setup(f => f.ShouldProcess(It.IsAny<string>(), It.IsAny<string>(), It.IsAny<string>())).Returns(true);
            mock.Setup(f => f.ShouldContinue(It.IsAny<string>(), It.IsAny<string>())).Returns(true);
        }
    }