public void Init(IUndoActions undo) { if (undo == null) { throw new ArgumentNullException("undo"); } this.undo = undo; }
public ScoreBoard(IGameActions actions, IUndoActions undo) { if (undo == null) { throw new ArgumentNullException("undo"); } if (actions == null) { throw new ArgumentNullException("actions"); } this.boardActions = actions; this.undoBoard = undo; }