public void ToolsetSettings_FilePathAttribute_ShouldMatch() { ToolsetSettings settings = new ToolsetSettings(); FilePathAttribute attr = (FilePathAttribute)settings.GetType().GetCustomAttribute(typeof(FilePathAttribute)); Assert.AreEqual(attr.FilePath, "./Settings/Toolset.settings"); }
private void ApplicationRoot_OnLoaded(object sender, RoutedEventArgs e) { _settings = _dataService.Load <ToolsetSettings>(); ApplySavedSettings(); _eventAggregator.GetEvent <ApplicationLoadedEvent>().Publish(); }