Add mediator examples
This commit is contained in:
@@ -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();
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user