Add interview example with strategy pattern
This commit is contained in:
committed by
Petrutiu Mihai
parent
998c9ea232
commit
8e9bc9f061
@@ -1,4 +1,5 @@
|
|||||||
using StrategyPattern.ArrangeInterview;
|
using StrategyPattern.ArrangeInterview;
|
||||||
|
using StrategyPattern.ArrangeInterview.Strategy;
|
||||||
using StrategyPattern.LoopWithException;
|
using StrategyPattern.LoopWithException;
|
||||||
using StrategyPattern.ShippingCalculator;
|
using StrategyPattern.ShippingCalculator;
|
||||||
using System;
|
using System;
|
||||||
@@ -25,8 +26,15 @@ namespace StrategyPattern
|
|||||||
ShippingMotivatingExample.Run();
|
ShippingMotivatingExample.Run();
|
||||||
|
|
||||||
Console.WriteLine("Now the same example, but implemented with strategy pattern");
|
Console.WriteLine("Now the same example, but implemented with strategy pattern");
|
||||||
ShippingWithStrategyExample.Run();
|
ShippingWithStrategyExample.Run();
|
||||||
//TODO:add more examples
|
//TODO:add more examples
|
||||||
|
|
||||||
|
MagnificLoopExample.Run();
|
||||||
|
LoopWithExceptionExample.Run();
|
||||||
|
|
||||||
|
ArrangeInterviewMotivationalExample.Run(InterviewPersons.Get());
|
||||||
|
|
||||||
|
ArrangeInterviewExample.Run(InterviewPersons.Get());
|
||||||
//Show the switch moving problem
|
//Show the switch moving problem
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user