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; }
private static void Initialize() { RoverCount = AppSettings.GetRoverCount(); PlateauController = new PlateauController(GetPlateau()); PlateauController.PositionChecks = FactoryFacade.GetPositionChecks(); }