public void BeforeTest()
        {
            UnitTestUtils.LoadOfflineData();

            ReplaceMessageServiceWithMock();
            ReplaceBackendWithMock();
        }
        public void BeforeTest()
        {
            UnitTestUtils.LoadOfflineData();
            mPlayerData = UnitTestUtils.LoadMockPlayerData();

            CreateMission();
        }
Exemple #3
0
        public void BeforeTest()
        {
            UnitTestUtils.LoadOfflineData();
            UnitTestUtils.LoadMockPlayerData();

            CreateTrainerManager();
        }
        public void BeforeTest()
        {
            UnitTestUtils.LoadOfflineData();
            mPlayerData = UnitTestUtils.LoadMockPlayerData();

            SetStatCalculator();
            CreateMissionTask();
        }
Exemple #5
0
        public void BeforeTest()
        {
            UnitTestUtils.LoadOfflineData();
            OfflineBackend backend = (OfflineBackend)BackendManager.Backend;

            mMapData      = backend.GetPlayerData_Offline <MapData>(BackendConstants.MAP_BASE);
            mMapUnderTest = new Map(mMapData);
        }
Exemple #6
0
 public void BeforeTests()
 {
     UnitTestUtils.LoadOfflineData();
     mTrainerData = new TrainerManager(new ViewModel(), new TrainerSaveData(), new Dictionary <string, UnitProgress>());
     mUnit        = new Unit(GenericDataLoader.GetData <UnitData>(GenericDataLoader.TEST_UNIT),
                             new UnitProgress()
     {
         Level = 1, Trainers = 1
     },
                             new ViewModel());
 }
Exemple #7
0
        public void BeforeTest()
        {
            UnitTestUtils.LoadOfflineData();

            OfflineBackend backend = (OfflineBackend)BackendManager.Backend;
            MapData        mapData = backend.GetPlayerData_Offline <MapData>(BackendConstants.MAP_BASE);

            mMapAreaData = mapData.Areas[0];

            mMissionProgress           = new SingleMissionProgress();
            mMissionProgress.Completed = false;

            mAreaUnderTest = new MapArea(mMapAreaData, mMissionProgress);
        }
Exemple #8
0
        public void BeforeTest()
        {
            UnitTestUtils.LoadOfflineData();
            mPlayerData = UnitTestUtils.LoadMockPlayerData();

            mMissionProposal = CreateMockMissionProposal();
            mUnit            = new MockUnit(100);
            mTestSelection   = new TaskUnitSelection(mUnit,
                                                     new MissionTaskData()
            {
                Index = TEST_TASK_INDEX, StatRequirement = TEST_STAT, PowerRequirement = POWER_REQUIREMENT
            },
                                                     mMissionProposal);

            SetPlayerDataToNotEnoughUnits();
        }
        public void BeforeTest()
        {
            UnitTestUtils.LoadOfflineData();
            UnitTestUtils.LoadMockPlayerData();

            UnitData data = GenericDataLoader.GetData <UnitData>(GenericDataLoader.TEST_UNIT);

            mUnit = new Unit(data,
                             new UnitProgress()
            {
                Level = 1, Trainers = 1
            },
                             new ViewModel());

            mBuilding      = BuildingUpgradeTests.GetTestBuilding();
            mBuilding.Unit = mUnit;
        }
Exemple #10
0
 public void BeforeTest()
 {
     UnitTestUtils.LoadOfflineData();
 }
Exemple #11
0
        public void BeforeTest()
        {
            UnitTestUtils.LoadOfflineData();

            mTrainerData = new TrainerManager(new ViewModel(), new TrainerSaveData(), new Dictionary <string, UnitProgress>());
        }