Exemplo n.º 1
0
        public void CanGetPagesByListOfIds()
        {
            // Arrange
            Page p1 = PageBuilder.BuildPage();
            Page p2 = PageBuilder.BuildPage();
            Page p3 = PageBuilder.BuildPage(); // Not used, make sure it doesn't popup in the result!

            Guid[] idList = new Guid[] { p1.Id, p2.Id };

            // Act
            IList <Page> pages = PageProvider.GetPages(idList).ToList();

            // Assert
            Assert.AreEqual(2, pages.Count);
            Assert.AreEqual(p1.Id, pages[0].Id);
            Assert.AreEqual(p2.Id, pages[1].Id);
        }
Exemplo n.º 2
0
 protected override void TestFixtureSetUp()
 {
     base.TestFixtureSetUp();
     MyPage = PageBuilder.BuildPage();
 }