public UIUpdater(IGame game, IUndo undo, IScoreQuery score, TextElements textElements) { if (game == null) { throw new ArgumentNullException("game"); } if (undo == null) { throw new ArgumentNullException("undo"); } if (score == null) { throw new ArgumentNullException("score"); } if (textElements == null) { throw new ArgumentNullException("textElements"); } if (textElements.Score == null) { throw new ArgumentException("Missing score text."); } if (textElements.DrawsLeft == null) { throw new ArgumentException("Missing draw text"); } this.game = game; this.undo = undo; this.score = score; this.scoreText = textElements.Score; this.drawText = textElements.DrawsLeft; ResetDrawText(); }
public MatchController(IBus commandBus, IScoreQuery scoreQuery) { _commandBus = commandBus; _scoreQuery = scoreQuery; }
public HomeController(IScoreQuery scoreQuery, IBus commandBus) { _scoreQuery = scoreQuery; _commandBus = commandBus; }