示例#1
0
        static void Main(string[] args)
        {
            AbstractManager manager = getChainOfManager();

            manager.check("pizza", "Paprika");
            Console.WriteLine("----------------------");
            manager.check("drinks", "Water");
            Console.WriteLine("----------------------");
            manager.check("order", "ID 001");
        }
 public void setNextManager(AbstractManager nextManager)
 {
     this.nextManager = nextManager;
 }