forked from abishekaditya/DesignPatterns
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProgram.cs
More file actions
19 lines (19 loc) · 670 Bytes
/
Program.cs
File metadata and controls
19 lines (19 loc) · 670 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
namespace MediatorPattern
{
class Program
{
static void Main(string[] args)
{
var mediator = new ManagerMediator();
var customer = new Customer(mediator);
var programmer = new Programmer(mediator);
var tester = new Tester(mediator);
mediator.Customer = customer;
mediator.Programmer = programmer;
mediator.Tester = tester;
customer.Send("We have an order, need to make a program");
programmer.Send("I have done program, need to test it");
tester.Send("I have done testing, here is ready program for you");
}
}
}