Example #1
0
        static void Main(string[] args)
        {
            var manager  = new Manager();
            var customer = new Cstomer(manager);
            var dev      = new Developer(manager);
            var test     = new Tester(manager);

            manager.Tester    = test;
            manager.Developer = dev;
            manager.Cstomer   = customer;

            customer.Send("add inf");
            dev.Send("sucsecfull");
            test.Send("OK");
        }
Example #2
0
 public override void Send(string msg, Participant p)
 {
     if (Tester == p)
     {
         Cstomer.Send(msg);
     }
     else if (Developer == p)
     {
         Tester.Send(msg);
     }
     else if (Cstomer == p)
     {
         Developer.Send(msg);
     }
 }