public void Initialize(int languageId) { var language = LanguageService.GetLanguageById(languageId); ClassJobService.Initialize(language); LocationService.Initialize(language); ContentService.Initialize(language); ItemService.Initialize(language); }
public void TestInitialize() { var language = new Language(1, "English", "en"); var gameDataManager = new GameDataManager(); var languageRepository = new GameDataRepository <XIVData.Model.Language>(gameDataManager.Language); var languageService = new LanguageService(languageRepository, new FFXIVACTPluginWrapperMock(), new ACTConfig()); IGameDataRepository <XIVData.Model.ClassJob> classJobRepository = new GameDataRepository <XIVData.Model.ClassJob>(gameDataManager.ClassJob); _classJobService = new ClassJobService(classJobRepository); _classJobService.Initialize(language); }