public void SourceLocationShouldScanExample2() { var loc = new LocalSourceLocation(); loc.LastCompletedScan = null; loc.ShouldScan(null); }
public void SourceLocationShouldScanExample14() { var loc = new LocalSourceLocation(); loc.LastCompletedScan = DateTime.Now.AddHours(-1250); loc.Priority = ArchivialLibrary.Files.FileBackupPriority.Low; var options = new ArchivialLibrary.Folders.ScanFrequencies(); options.LowPriorityScanFrequencyInHours = 72; Assert.IsTrue(loc.ShouldScan(options)); }
public void SourceLocationShouldScanExample8() { var loc = new LocalSourceLocation(); loc.LastCompletedScan = DateTime.Now.AddHours(-23); loc.Priority = ArchivialLibrary.Files.FileBackupPriority.Medium; var options = new ArchivialLibrary.Folders.ScanFrequencies(); options.MedPriorityScanFrequencyInHours = 24; Assert.IsFalse(loc.ShouldScan(options)); }
public void SourceLocationShouldScanExample5() { var loc = new LocalSourceLocation(); loc.LastCompletedScan = DateTime.Now.AddMinutes(-61); loc.Priority = ArchivialLibrary.Files.FileBackupPriority.High; var options = new ArchivialLibrary.Folders.ScanFrequencies(); options.HighPriorityScanFrequencyInHours = 1; Assert.IsTrue(loc.ShouldScan(options)); }
public void SourceLocationShouldScanExample1() { var loc = new LocalSourceLocation(); loc.LastCompletedScan = null; var options = new ArchivialLibrary.Folders.ScanFrequencies(); options.LowPriorityScanFrequencyInHours = 72; options.MedPriorityScanFrequencyInHours = 24; options.HighPriorityScanFrequencyInHours = 1; Assert.IsTrue(loc.ShouldScan(options)); }