Ejemplo n.º 1
0
 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);
 }
Ejemplo n.º 2
0
 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);
 }
Ejemplo n.º 3
0
 public DiagInfo(DemoConfig config, List<DiagStatusItem> dstats)
 {
     Config = config;
     StatusItems = dstats;
     AppVersion = this.GetType().Assembly.GetName().Version.ToString();
 }
Ejemplo n.º 4
0
 public AdminController(DemoConfig config)
 {
     _config = config;
 }