Add another air traffic controller example for mediator

This commit is contained in:
Petrutiu Mihai
2016-06-23 19:45:10 +03:00
parent 06d201c917
commit 0a130b0405
19 changed files with 241 additions and 28 deletions

View File

@@ -1,27 +1,30 @@
using MediatorPattern.AirTrafficControl;
using MediatorPattern.FlightAirTrafficControl;
using MediatorPattern.GroundAirTrafficControl;
using MediatorPattern.StockExchange;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace MediatorPattern
{
{
public class MediatorPatternExamples
{
public static void Run()
{
Console.WriteLine(GetPatternDescription());
Console.WriteLine(GetActors());
Console.WriteLine(WhenToUseIt());
GoToNextStep();
//Console.WriteLine(GetPatternDescription());
//Console.WriteLine(GetActors());
//Console.WriteLine(WhenToUseIt());
//GoToNextStep();
StockExchangeExample stockExample = new StockExchangeExample();
stockExample.Run();
//StockExchangeExample stockExample = new StockExchangeExample();
//stockExample.Run();
GoToNextStep();
AirTrafficControlExample airTraficExample = new AirTrafficControlExample();
airTraficExample.Run();
//GoToNextStep();
//GroundAirTrafficControlExample groundAirControl = new GroundAirTrafficControlExample();
//groundAirControl.Run();
//GoToNextStep();
FlightAirTrafficControlExample flightAirControl = new FlightAirTrafficControlExample();
flightAirControl.Run();
}
static string GetPatternDescription()