public async Task SettingValues_Should_Be_Set()
        {
            // Arrange
            var settingValues = new Dictionary <string, string>
            {
                { "setting_Test_Setting1", "value1" },
                { "setting_Test_Setting2", "value2" },
                { "RequestToken", "value3" },
            };

            // Act
            await _service.SetSettingValues(settingValues);

            // Assert
            await _settingManager.Received().SetGlobalAsync("Test.Setting1", "value1");

            await _settingManager.Received().SetGlobalAsync("Test.Setting2", "value2");

            await _settingManager.DidNotReceive().SetGlobalAsync("RequestToken", "value3");
        }
        public async Task SettingValues_Should_Be_Set()
        {
            // Arrange
            var settingValues = new Dictionary <string, string>
            {
                { "setting_Test_Setting1", "value1" },
                { "setting_Test_Setting2", "value2" },
                { "RequestToken", "value3" },    // This is a invalid setting name from frontend
            };

            // Act
            await _service.SetSettingValues(settingValues);

            // Assert
            await _settingManager.Received().SetForCurrentTenantAsync("Test.Setting1", "value1");

            await _settingManager.Received().SetForCurrentTenantAsync("Test.Setting2", "value2");

            await _settingManager.DidNotReceive().SetForCurrentTenantAsync("RequestToken", "value3");
        }
 public Task SetSettingValues(Dictionary <string, string> settingValues)
 {
     return(_service.SetSettingValues(settingValues));
 }