public Player(IConstraintValidator constraintValidator, IBattlefieldSetter battlefieldSetter, GameConstraint gameConstraint) { this.constraintValidator = constraintValidator; this.battlefieldSetter = battlefieldSetter; this.gameConstraint = gameConstraint; ValidateConstraint(gameConstraint); InitializeBattlefieldAnalyzer(); name = gameConstraint.PlayerName; }
public BattleshipExecutor(IGameConstraintsParser gameConstraintsParser, IConstraintValidator constraintValidator, IBattlefieldSetter battlefieldSetter, IConsoleWriter consoleWriter) { this.gameConstraintsParser = gameConstraintsParser; this.constraintValidator = constraintValidator; this.battlefieldSetter = battlefieldSetter; this.consoleWriter = consoleWriter; }
public OrderDomainModel(IConstraintValidator validator) : base(validator) { }
public ConsoleWriter(IConstraintValidator constraintValidator) { this.constraintValidator = constraintValidator; }
public DomainObject(IConstraintValidator validator) => this._validator = validator;