Example #1
0
 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;
        }
Example #3
0
 public Engine(
     ICommandParser parser,
     ICommandProcessor processor,
     IBattleShipFactory factory,
     IView view
     )
 {
     this.Parser    = parser;
     this.processor = processor;
     this.factory   = factory;
     this.view      = view;
 }
Example #4
0
        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;
 }
Example #6
0
 public CreatePlayerCommand(IBattleShipFactory factory, IEngine engine)
 {
     this.factory = factory;
     this.engine  = engine;
 }
Example #7
0
 public FakeCreateFrigateCommand(IBattleShipFactory factory, IEngine engine)
     : base(factory, engine)
 {
 }
Example #8
0
 public CreateSubmarineCommand(IBattleShipFactory factory, IEngine engine)
 {
     this.factory = factory;
     this.engine  = engine;
 }
 public FakeCreateBattleCruiserCommand(IBattleShipFactory factory, IEngine engine)
     : base(factory, engine)
 {
 }
Example #10
0
 //Constructor
 public StateTrackingManager(IBattleShipFactory battleShipFactory)
 {
     _battleShipFactory = battleShipFactory;
 }
Example #11
0
 public FakeCreateDestroyerCommand(IBattleShipFactory factory, IEngine engine)
     : base(factory, engine)
 {
 }
Example #12
0
 public FakeCreateAircraftCarrierCommand(IBattleShipFactory factory, IEngine engine)
     : base(factory, engine)
 {
 }
Example #13
0
 public CreateAircraftCarrierCommand(IBattleShipFactory factory, IEngine engine)
 {
     this.factory = factory;
     this.engine  = engine;
 }
Example #14
0
 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;
 }