public UpdateTflJob() { Name = "TFL DATA Update"; SourceDir = "\\\\Regina\\Documents\\Backup\\tfl"; DestDir = "d:\\shares\\tfl"; DiskDetector = new DiskDetector(); Logger = NLog.LogManager.GetCurrentClassLogger(); }
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); }
public void TestDiskIdentifiers() { var sut = new DiskDetector(); var ids = DiskDetector.DiskIdentifiers(); Console.WriteLine("{0} : {1}", "IDs", ids); Assert.IsTrue(ids.Length > 0); }
public void TestDiskAvailable() { var sut = new DiskDetector(); Assert.IsFalse(sut.IsDiskAvailable("<diskId>")); }