public void Initialize() { _repository = new MemorySettingRepository(new LongPrimaryKeyGenerator()); _settingManager = new SettingManager(new SampleSettingDefinitionManager()) { Session = new AbpSession(), SettingStore = new SettingStore(_repository) }; FillTestData(_repository); }
private static void FillTestData(MemorySettingRepository repository) { //Language setting for application repository.Insert( new Setting { UserId = null, Name = "Language", Value = "fr" }); //Language setting for UserId = 1 repository.Insert( new Setting { UserId = 1, Name = "Language", Value = "tr" }); }
public void Initialize() { _repository = new MemorySettingRepository(new LongPrimaryKeyGenerator()); _settingManager = new SettingManager(_repository, new SampleSettingDefinitionManager()); FillTestData(_repository); }