From 2f98e10ee2b053c6d5493d28918d72c0b0242d48 Mon Sep 17 00:00:00 2001 From: Petrutiu Mihai Date: Thu, 23 Jun 2016 09:41:01 +0300 Subject: [PATCH] Undo initial program to run all examples Remove unnecessary variable from StockSchedule --- src/BehavioralPatterns/Program.cs | 8 ++++---- src/CommandPattern/StocksExample/StockSchedule.cs | 1 - 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/BehavioralPatterns/Program.cs b/src/BehavioralPatterns/Program.cs index 92921e3..976f875 100644 --- a/src/BehavioralPatterns/Program.cs +++ b/src/BehavioralPatterns/Program.cs @@ -17,14 +17,14 @@ namespace BehavioralPatterns //Chain of responsibillity //This is usefull when you have a request and you don't know who should process it - //ChainOfResponsibillityExamples.Run(); - //Console.ReadKey(); + ChainOfResponsibillityExamples.Run(); + Console.ReadKey(); CommandPatternExamples.Run(); Console.ReadKey(); - //IteratorPatternExamples.Run(); - //Console.ReadKey(); + IteratorPatternExamples.Run(); + Console.ReadKey(); } } diff --git a/src/CommandPattern/StocksExample/StockSchedule.cs b/src/CommandPattern/StocksExample/StockSchedule.cs index 587fba3..3e8ea55 100644 --- a/src/CommandPattern/StocksExample/StockSchedule.cs +++ b/src/CommandPattern/StocksExample/StockSchedule.cs @@ -5,7 +5,6 @@ namespace CommandPattern.StocksExample { public class FakeStockSchedule : IStockSchedule { - TimeSpan timeWhenMarketOpens; bool isStockOpen; public FakeStockSchedule(bool isStockOpen, TimeSpan dueTime) {