コード例 #1
0
ファイル: ObjectTests.cs プロジェクト: blair55/MarsRover
        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
ファイル: Program.cs プロジェクト: blair55/MarsRover
 private static void Initialize()
 {
     RoverCount = AppSettings.GetRoverCount();
     PlateauController = new PlateauController(GetPlateau());
     PlateauController.PositionChecks = FactoryFacade.GetPositionChecks();
 }