public void Good_filepath_is_validated()
 {
     var ht = new System.Collections.Hashtable();
     ht["FileShare"] = Path.GetTempPath();
     DemoConfig cfg = new DemoConfig(ht);
     var status = EnvEvaluator.EvaluateFilesystemPath(() => cfg.FileShare);
     Assert.True(status.IsOK);
 }
 public void Bad_filepath_is_detected()
 {
     var ht = new System.Collections.Hashtable();
     ht["FileShare"] = @"q:\IDontExist";
     DemoConfig cfg = new DemoConfig(ht);
     var status = EnvEvaluator.EvaluateFilesystemPath(() => cfg.FileShare);
     Assert.False(status.IsOK);
 }
Beispiel #3
0
 public DiagInfo(DemoConfig config, List<DiagStatusItem> dstats)
 {
     Config = config;
     StatusItems = dstats;
     AppVersion = this.GetType().Assembly.GetName().Version.ToString();
 }
 public AdminController(DemoConfig config)
 {
     _config = config;
 }