public StateTrackingManagerTests() { _fixture = new Fixture(); _sutBattleShipFactory = Substitute.For <IBattleShipFactory>(); _sutShipOrientationFactory = Substitute.For <IShipOrientationFactory>(); _sutStateTrackingManager = new StateTrackingManager(_sutBattleShipFactory); }
public CreateAircraftCarrierCommand(IBattleShipFactory factory, IEngine engine) { Guard.WhenArgument(factory, "Factory").IsNull().Throw(); this.factory = factory; Guard.WhenArgument(engine, "Engine").IsNull().Throw(); this.engine = engine; }
public Engine( ICommandParser parser, ICommandProcessor processor, IBattleShipFactory factory, IView view ) { this.Parser = parser; this.processor = processor; this.factory = factory; this.view = view; }
public Engine( ICommandParser parser, ICommandProcessor processor, IBattleShipFactory factory, IView view ) { Guard.WhenArgument(parser, "Parser").IsNull().Throw(); this.parser = parser; Guard.WhenArgument(processor, "Processor").IsNull().Throw(); this.processor = processor; Guard.WhenArgument(factory, "Factory").IsNull().Throw(); this.factory = factory; Guard.WhenArgument(view, "View").IsNull().Throw(); this.view = view; }
public BattleBoardService(IBattleShipFactory battleShipFactory) { _battleShipFactory = battleShipFactory; }
public CreatePlayerCommand(IBattleShipFactory factory, IEngine engine) { this.factory = factory; this.engine = engine; }
public FakeCreateFrigateCommand(IBattleShipFactory factory, IEngine engine) : base(factory, engine) { }
public CreateSubmarineCommand(IBattleShipFactory factory, IEngine engine) { this.factory = factory; this.engine = engine; }
public FakeCreateBattleCruiserCommand(IBattleShipFactory factory, IEngine engine) : base(factory, engine) { }
//Constructor public StateTrackingManager(IBattleShipFactory battleShipFactory) { _battleShipFactory = battleShipFactory; }
public FakeCreateDestroyerCommand(IBattleShipFactory factory, IEngine engine) : base(factory, engine) { }
public FakeCreateAircraftCarrierCommand(IBattleShipFactory factory, IEngine engine) : base(factory, engine) { }
public CreateAircraftCarrierCommand(IBattleShipFactory factory, IEngine engine) { this.factory = factory; this.engine = engine; }
public FakeBeginPlayCommand(IBattleShipFactory factory, IEngine engine) : base(factory, engine) { }
public BeginPlayCommand(IBattleShipFactory factory, IEngine engine) { this.engine = engine; }
public Map(IBattleShipFactory battleShipFactory, IDestroyerShipFactory destroyerShipFactory, MapConfiguration mapConfiguration) { _battleShipFactory = battleShipFactory; _destroyerShipFactory = destroyerShipFactory; _mapConfiguration = mapConfiguration; }
public FireAtCommand(IBattleShipFactory factory, IEngine engine) { this.engine = engine; }