Catel.Test.MVVM.CompositeCommandFacts.TheRegisterCommandMethod.RegistersCommandForExecution C# (CSharp) 메소드

RegistersCommandForExecution() 개인적인 메소드

private RegistersCommandForExecution ( ) : void
리턴 void
            public void RegistersCommandForExecution()
            {
                var vm = new CompositeCommandViewModel();
                var compositeCommand = new CompositeCommand();

                compositeCommand.RegisterCommand(vm.TestCommand1, vm);

                compositeCommand.Execute();

                Assert.IsTrue(vm.IsTestCommand1Executed);
            }
        }