public FileCompareStatsVerifiedLength(IFileCompareStats stats, DateTime lastVerified) { if (stats == null) { throw new ArgumentNullException("stats"); } _md5 = new FileMD5StatsVerifiedLength(stats, lastVerified); _groupID = stats.GroupID; }
public FileCompareStatsVerifiedMD5(IFileCompareStats stats, DateTime lastCalculated) { if (stats == null) { throw new ArgumentNullException("stats"); } _md5 = new FileMD5Stats(stats.Length, lastCalculated, stats.Checksum); _lastCompared = FileStats.NormalizeDateTime(stats.LastCompared); if (_md5.LastCalculatedUTC.Equals(_lastCompared)) { throw new InvalidOperationException("Last verified date must be different from last calculated date"); } _groupID = stats.GroupID; }
public bool Equals(IFileCompareStats other) => other != null && other is FileCompareStatsVerifiedMD5 && Equals((FileCompareStatsVerifiedMD5)other);
public bool Equals(IFileCompareStats other) => other != null && other is FileCompareStatusReverified && Equals((FileCompareStatusReverified)other);
public bool Equals(IFileCompareStats other) => other != null && other is FileCompareStats && Equals((FileCompareStats)other);