Add partial example UsersToGroups

This commit is contained in:
Petrutiu Mihai
2016-06-23 17:54:44 +03:00
parent a632b5a6d9
commit 06d201c917
4 changed files with 87 additions and 4 deletions

View File

@@ -13,11 +13,11 @@ namespace MediatorPattern
{
Console.WriteLine(GetPatternDescription());
Console.WriteLine(GetActors());
Console.WriteLine(WhenToUseIt());
GoToNextStep();
//GoToNextStep();
//StockExchangeExample stockExample = new StockExchangeExample();
//stockExample.Run();
StockExchangeExample stockExample = new StockExchangeExample();
stockExample.Run();
GoToNextStep();
AirTrafficControlExample airTraficExample = new AirTrafficControlExample();
@@ -41,6 +41,16 @@ Colleague: objects that communicate through the mediator
";
}
static string WhenToUseIt()
{
return @"When to use it:
Identify a collection of interacting objects whose interaction needs simplification
Get a new abstract class that encapsulates that interaction
Create a instance of that class and redo the interaction with that class alone
But, dont play God!
";
}
private static void GoToNextStep()
{
Console.ReadKey();