Inheritance: LoggingPolicyCommandBase
        public void RemoveLoggingPolicy()
        {
            var called  = false;
            var service = new TestLoggingPolicyService()
            {
                RemoveLoggingPolicyAction = () => { called = true; }
            };

            var cmd    = new RemoveLoggingPolicyCommand(service);
            var output = cmd.Invoke <PSObject>();

            // Need to enumerate output to call BeginProcessing().
            Assert.IsNotNull(output);
            Assert.IsNull(output.FirstOrDefault());

            Assert.IsTrue(called);
        }
        public void RemoveLoggingPolicy()
        {
            var called = false;
            var service = new TestLoggingPolicyService()
            {
                RemoveLoggingPolicyAction = () => { called = true; }
            };

            var cmd = new RemoveLoggingPolicyCommand(service);
            var output = cmd.Invoke<PSObject>();

            // Need to enumerate output to call BeginProcessing().
            Assert.IsNotNull(output);
            Assert.IsNull(output.FirstOrDefault());

            Assert.IsTrue(called);
        }