public void VerifyPublicAreNotRetrievedByDefault() { IDayEntry dayEntry; dayEntry = BlogDataService.GetDayEntry(new DateTime(2003, 7, 31)); Assert.AreEqual(6, dayEntry.GetEntries().Count, "The correct item count was not returned considering some items were private."); dayEntry = BlogDataService.GetDayEntry(new DateTime(2003, 8, 1)); Assert.AreEqual(4, dayEntry.GetEntries().Count, "The correct item count was not returned considering some items were private."); }
public void GetDayEntry() { IDayEntry dayEntry; // Note that non public items are ignored. dayEntry = BlogDataService.GetDayEntry(new DateTime(2003, 7, 31)); Assert.AreEqual(6, dayEntry.GetEntries().Count); // Note that non public items are ignored. dayEntry = BlogDataService.GetDayEntry(new DateTime(2003, 8, 1)); Assert.AreEqual(4, dayEntry.GetEntries().Count); }
public void LoadDayEntry() { IDayEntry dayEntry = BlogDataService.GetDayEntry(new DateTime(2004, 3, 1)); Assert.AreEqual(2, dayEntry.GetEntries().Count); }