public static TestSettings Load()
 {
     if (ServiceLocator.Default.IsRegistered<ScanConfig>())
     {
         return FromScanConfig(ServiceLocator.Default.Resolve<ScanConfig>());
     }
     else
     {
         var settings = new TestSettings();
         settings.LoadAppSettings();
         return settings;
     }
 }
 private void ResolveSettings()
 {
     Settings = ServiceLocator.Default.ResolveOrCreate(() =>
     {
         var settings = new TestSettings();
         settings.LoadAppSettings();
         return settings;
     });
 }