public GuessingNumbersGame() { NumberGenerator = new NumberGenerator(); PerformerGame = new PerformerGame(); ResultDisplay = new ResultDisplay(new FakeConsole()); ProgramExecution = new DecisionOnFurtherCourseOfProgram(this); }
public GuessingNumbersGame(INumberGenerator NumberGenerator, IPerformerGame PerformerGame, IResultDisplay ResultDisplay, IDecisionOnFurtherCourseOfProgram ProgramExecution) { this.NumberGenerator = NumberGenerator; this.PerformerGame = PerformerGame; this.ResultDisplay = ResultDisplay; this.ProgramExecution = ProgramExecution; }