示例#1
0
        public void allpagecontents()
        {
            // Arrange


            // Act
            List <PageContent> pagesContents = Repository.AllPageContents().ToList();

            // Assert
            Assert.That(pagesContents.Count, Is.EqualTo(10));             // five pages with 2 versions
            Assert.That(pagesContents[0], Is.Not.Null);

            PageContent expectedPageContent = pagesContents.FirstOrDefault(x => x.Id == _pageContent1.Id);

            Assert.That(expectedPageContent, Is.Not.Null);
        }