예제 #1
0
        public override void Given()
        {
            this.StubbedRover = stub_a<IRover>();
            this.StubbedPlateau = stub_a<IPlateau>();
            this.StubbedInstruction = stub_a<IInstruction>();
            this.StubbedPositionChecks = stub_a<List<IPositionCheck>>();

            this.PlateauController = new PlateauController(this.StubbedPlateau);
            this.PlateauController.PositionChecks = this.StubbedPositionChecks;
            this.StubbedRover.Instruction = this.StubbedInstruction;
        }
예제 #2
0
 private static void Initialize()
 {
     RoverCount = AppSettings.GetRoverCount();
     PlateauController = new PlateauController(GetPlateau());
     PlateauController.PositionChecks = FactoryFacade.GetPositionChecks();
 }