/// <summary>
        /// Executing the test.
        /// </summary>
        public static void ExecuteTest()
        {
            SpiritualMaster spiritMaster      = new SpiritualMaster("Krsna Swami");
            Disciple        spiritualDisciple = new Disciple("Krsna Das");

            spiritMaster.SetCommand(new OrderCommand(spiritualDisciple));

            spiritMaster.GiveOrder("Chant 300,000 rounds.");
        }
示例#2
0
 /// <summary>
 /// The command the spiritual master will give.
 /// </summary>
 /// <param name="spiritMaster">Spiritual master issuing the command.</param>
 /// <param name="order">The order of the spiritual master.</param>
 public void ExecuteCommand(SpiritualMaster spiritMaster, string order)
 {
     this.commandedDisciple.FollowInstructions(spiritMaster, order);
 }