コード例 #1
0
        public void TestCase6()
        {
            Receiver receiver = new Receiver();
              Command cmd = new ConcreteCommand(receiver, "Hello World");

              Invoker invoker = new Invoker();
              invoker.StoreCommand(cmd);

              invoker.Invoke();
              invoker.UndoInvoke();
        }