コード例 #1
0
        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.");
        }
コード例 #2
0
        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);
        }
コード例 #3
0
        public void LoadDayEntry()
        {
            IDayEntry dayEntry = BlogDataService.GetDayEntry(new DateTime(2004, 3, 1));

            Assert.AreEqual(2, dayEntry.GetEntries().Count);
        }