public void BeforeTest() { UnitTestUtils.LoadOfflineData(); ReplaceMessageServiceWithMock(); ReplaceBackendWithMock(); }
public void BeforeTest() { UnitTestUtils.LoadOfflineData(); mPlayerData = UnitTestUtils.LoadMockPlayerData(); CreateMission(); }
public void BeforeTest() { UnitTestUtils.LoadOfflineData(); UnitTestUtils.LoadMockPlayerData(); CreateTrainerManager(); }
public void BeforeTest() { UnitTestUtils.LoadOfflineData(); mPlayerData = UnitTestUtils.LoadMockPlayerData(); SetStatCalculator(); CreateMissionTask(); }
public void BeforeTest() { UnitTestUtils.LoadOfflineData(); OfflineBackend backend = (OfflineBackend)BackendManager.Backend; mMapData = backend.GetPlayerData_Offline <MapData>(BackendConstants.MAP_BASE); mMapUnderTest = new Map(mMapData); }
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()); }
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); }
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; }
public void BeforeTest() { UnitTestUtils.LoadOfflineData(); }
public void BeforeTest() { UnitTestUtils.LoadOfflineData(); mTrainerData = new TrainerManager(new ViewModel(), new TrainerSaveData(), new Dictionary <string, UnitProgress>()); }