|
|
|
@ -1,4 +1,5 @@
|
|
|
|
|
using Volo.Abp.DependencyInjection;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
using Volo.Abp.DependencyInjection;
|
|
|
|
|
using Volo.Abp.Guids;
|
|
|
|
|
using Volo.Abp.Settings;
|
|
|
|
|
|
|
|
|
@ -20,9 +21,9 @@ namespace Volo.Abp.SettingManagement
|
|
|
|
|
_testData = testData;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void Build()
|
|
|
|
|
public async Task BuildAsync()
|
|
|
|
|
{
|
|
|
|
|
_settingRepository.Insert(
|
|
|
|
|
await _settingRepository.InsertAsync(
|
|
|
|
|
new Setting(
|
|
|
|
|
_testData.SettingId,
|
|
|
|
|
"MySetting1",
|
|
|
|
@ -31,7 +32,7 @@ namespace Volo.Abp.SettingManagement
|
|
|
|
|
)
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
_settingRepository.Insert(
|
|
|
|
|
await _settingRepository.InsertAsync(
|
|
|
|
|
new Setting(
|
|
|
|
|
_guidGenerator.Create(),
|
|
|
|
|
"MySetting2",
|
|
|
|
@ -40,7 +41,7 @@ namespace Volo.Abp.SettingManagement
|
|
|
|
|
)
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
_settingRepository.Insert(
|
|
|
|
|
await _settingRepository.InsertAsync(
|
|
|
|
|
new Setting(
|
|
|
|
|
_guidGenerator.Create(),
|
|
|
|
|
"MySetting2",
|
|
|
|
@ -50,7 +51,7 @@ namespace Volo.Abp.SettingManagement
|
|
|
|
|
)
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
_settingRepository.Insert(
|
|
|
|
|
await _settingRepository.InsertAsync(
|
|
|
|
|
new Setting(
|
|
|
|
|
_guidGenerator.Create(),
|
|
|
|
|
"MySetting2",
|
|
|
|
@ -60,7 +61,7 @@ namespace Volo.Abp.SettingManagement
|
|
|
|
|
)
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
_settingRepository.Insert(
|
|
|
|
|
await _settingRepository.InsertAsync(
|
|
|
|
|
new Setting(
|
|
|
|
|
_guidGenerator.Create(),
|
|
|
|
|
"MySettingWithoutInherit",
|
|
|
|
@ -69,7 +70,7 @@ namespace Volo.Abp.SettingManagement
|
|
|
|
|
)
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
_settingRepository.Insert(
|
|
|
|
|
await _settingRepository.InsertAsync(
|
|
|
|
|
new Setting(
|
|
|
|
|
_guidGenerator.Create(),
|
|
|
|
|
"MySettingWithoutInherit",
|
|
|
|
|