public GridPagerBuilderTests() { pagerSectionBuilder = new Mock<IGridPagerSectionsBuilder>(); pagerSectionBuilder.Setup(ps => ps.CreateSections(It.IsAny<GridPagerData>())).Returns(new HtmlElement("div")); refreshSectionBuilder = new Mock<IGridPagerRefreshBuilder>(); refreshSectionBuilder.Setup(rs => rs.Create(It.IsAny<string>(), It.IsAny<string>())).Returns(new HtmlElement("div")); statusBuilder = new Mock<IGridPagerStatusBuilder>(); statusBuilder.Setup(rs => rs.Create(It.IsAny<GridPagerData>())).Returns(new HtmlElement("div")); builder = new GridPagerBuilder(pagerSectionBuilder.Object, refreshSectionBuilder.Object, statusBuilder.Object); }
public GridPagerBuilderTests() { pagerSectionBuilder = new Mock <IGridPagerSectionsBuilder>(); pagerSectionBuilder.Setup(ps => ps.CreateSections(It.IsAny <GridPagerData>())).Returns(new HtmlElement("div")); refreshSectionBuilder = new Mock <IGridPagerRefreshBuilder>(); refreshSectionBuilder.Setup(rs => rs.Create(It.IsAny <string>(), It.IsAny <string>())).Returns(new HtmlElement("div")); statusBuilder = new Mock <IGridPagerStatusBuilder>(); statusBuilder.Setup(rs => rs.Create(It.IsAny <GridPagerData>())).Returns(new HtmlElement("div")); builder = new GridPagerBuilder(pagerSectionBuilder.Object, refreshSectionBuilder.Object, statusBuilder.Object); }