Abp.Configuration.SettingManager.GetSettingValueAsync(string)

Here are the examples of the csharp api class Abp.Configuration.SettingManager.GetSettingValueAsync(string) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

5 Examples 7

1. Example

Project: aspnetboilerplate
Source File: SettingManager_Tests.cs
[Fact]
        public async Task Should_Get_Default_Values_With_No_Store_And_No_Session()
        {
            var settingManager = CreateSettingManager();

            (await settingManager.GetSettingValueAsync<int>(MyAppLevelSetting)).ShouldBe(42);
            (await settingManager.GetSettingValueAsync(MyAllLevelsSetting)).ShouldBe("application level default value");
        }

2. Example

Project: aspnetboilerplate
Source File: SettingManager_Tests.cs
[Fact]
        public async Task Should_Get_Stored_Application_Value_With_No_Session()
        {
            var settingManager = CreateSettingManager();
            settingManager.SettingStore = new MemorySettingStore();

            (await settingManager.GetSettingValueAsync<int>(MyAppLevelSetting)).ShouldBe(48);
            (await settingManager.GetSettingValueAsync(MyAllLevelsSetting)).ShouldBe("application level stored value");
        }

3. Example

Project: aspnetboilerplate
Source File: SettingManager_Tests.cs
[Fact]
        public async Task Should_Get_Correct_Values()
        {
            var session = Cre/n ..... /n //View Source file for more details /n }

4. Example

Project: aspnetboilerplate
Source File: SettingManager_Tests.cs
[Fact]
        public async Task Should_Change_Setting_Values()
        {
            var session = /n ..... /n //View Source file for more details /n }

5. Example

Project: aspnetboilerplate
Source File: SettingManager_Tests.cs
[Fact]
        public async Task Should_Delete_Setting_Values_On_Default_Value()
        {
         /n ..... /n //View Source file for more details /n }