public UpdateTflJob()
 {
     Name = "TFL DATA Update";
     SourceDir = "\\\\Regina\\Documents\\Backup\\tfl";
     DestDir = "d:\\shares\\tfl";
     DiskDetector = new DiskDetector();
      Logger = NLog.LogManager.GetCurrentClassLogger();
 }
Beispiel #2
0
 public void TestDiskDetector()
 {
     var sut = new DiskDetector();
      var vm = sut.DisksView;
      foreach (var disk in vm.Disks)
      {
     Console.WriteLine("{0}:{1}", "Name", disk.Name);
      }
      Assert.IsTrue(vm.Disks.Count > 0);
 }
Beispiel #3
0
 public void TestDiskIdentifiers()
 {
     var sut = new DiskDetector();
      var ids = DiskDetector.DiskIdentifiers();
      Console.WriteLine("{0} : {1}", "IDs", ids);
      Assert.IsTrue(ids.Length > 0);
 }
Beispiel #4
0
 public void TestDiskAvailable()
 {
     var sut = new DiskDetector();
      Assert.IsFalse(sut.IsDiskAvailable("<diskId>"));
 }