Undo initial program to run all examples

Remove unnecessary variable from StockSchedule
This commit is contained in:
Petrutiu Mihai
2016-06-23 09:41:01 +03:00
parent dd93a7c099
commit 2f98e10ee2
2 changed files with 4 additions and 5 deletions

View File

@@ -17,14 +17,14 @@ namespace BehavioralPatterns
//Chain of responsibillity //Chain of responsibillity
//This is usefull when you have a request and you don't know who should process it //This is usefull when you have a request and you don't know who should process it
//ChainOfResponsibillityExamples.Run(); ChainOfResponsibillityExamples.Run();
//Console.ReadKey(); Console.ReadKey();
CommandPatternExamples.Run(); CommandPatternExamples.Run();
Console.ReadKey(); Console.ReadKey();
//IteratorPatternExamples.Run(); IteratorPatternExamples.Run();
//Console.ReadKey(); Console.ReadKey();
} }
} }

View File

@@ -5,7 +5,6 @@ namespace CommandPattern.StocksExample
{ {
public class FakeStockSchedule : IStockSchedule public class FakeStockSchedule : IStockSchedule
{ {
TimeSpan timeWhenMarketOpens;
bool isStockOpen; bool isStockOpen;
public FakeStockSchedule(bool isStockOpen, TimeSpan dueTime) public FakeStockSchedule(bool isStockOpen, TimeSpan dueTime)
{ {