public void IsUpToDate_DateOutSideHour_ReturnsFalse() { var target = new SearchThreadPosts() { LastUpdated = DateTime.Now.AddHours(-2) }; Assert.IsFalse(target.IsUpToDate(null)); }
public void IsUpToDate_DateWithinHour_ReturnsTrue() { var target = new SearchThreadPosts() { LastUpdated = DateTime.Now.AddMinutes(-1) }; Assert.IsTrue(target.IsUpToDate(null)); }