Add mediator examples

This commit is contained in:
Petrutiu Mihai
2016-06-23 17:04:16 +03:00
parent 68f0822bfe
commit a632b5a6d9
21 changed files with 557 additions and 2 deletions

View File

@@ -2,6 +2,7 @@
using ChainOfResponssibility.PurchaseExample;
using CommandPattern;
using IteratorPattern;
using MediatorPattern;
using System;
using System.Collections.Generic;
using System.Diagnostics;
@@ -13,8 +14,8 @@ namespace BehavioralPatterns
public class Program
{
public static void Main(string[] args)
{
{
//Chain of responsibillity
//This is usefull when you have a request and you don't know who should process it
ChainOfResponsibillityExamples.Run();
@@ -28,6 +29,9 @@ namespace BehavioralPatterns
IteratorPatternExamples.Run();
Console.ReadKey();
MediatorPatternExamples.Run();
}
}
}