public void SaveUserConfigurationTest() { // Arrange // All set at initialization // Act bool success = _serviceMockObject.SaveUserConfiguration(); // Assert Assert.IsTrue(success); }
private void SaveSettings(object obj) { // Apply color and theme ApplyAccentColor(_selectedAccentColorData); ApplyAppTheme(_SelectedAppThemeData); // SAVE: set color and theme in config file, and save the file _userConfigService.SetConfigItem(Color_Config_Key, _selectedAccentColorData.Name); _userConfigService.SetConfigItem(Theme_Config_Key, _SelectedAppThemeData.Name); _userConfigService.SaveUserConfiguration(); // Prepare message for parent window var settingMsg = new SettingMessage() { IsOpen = false }; // Send message // Note: For multi message, use context in order to have a unique identifier Messenger.Default.Send <SettingMessage>(settingMsg, Flyout_msg_key); }