예제 #1
0
        static void Main(string[] args)
        {
            Approver teamLead = new TeamLeadApprover();
            Approver cto      = new CTO();

            teamLead.setNext(cto);

            Console.WriteLine(teamLead.HandleRequest(3));
            Console.WriteLine(teamLead.HandleRequest(50));
            Console.WriteLine(teamLead.HandleRequest(5000));
        }
예제 #2
0
        static void Main(string[] args)
        {
            Approver teamLed = new TeamLeadApprover();
            Approver cto = new CTO();

            teamLed.SetNext(cto);

            teamLed.HandleRequest(3);
            teamLed.HandleRequest(3);
            teamLed.HandleRequest(5000);
        }