public void Footer() { FooterBuilder footerBuilder = new FooterBuilder(null); FooterBuilder actionBuilder = null; FooterConfig config = null; _builderFactory.FooterBuilder(Arg.Do <FooterConfig>(fc => config = fc)).Returns(footerBuilder); TableBuilder <TableEntity> builder = _builder.Footer(fb => actionBuilder = fb); this.RenderAndVerify(); _builderFactory.Received(1).FooterBuilder(Arg.Any <FooterConfig>()); actionBuilder.Should().BeSameAs(footerBuilder); config.Should().BeSameAs(_config.Footer); builder.Should().BeSameAs(_builder); }
public ActionResult Footer(IPublishedContent currentPage) { var model = FooterBuilder.GetModel(currentPage); return(PartialView("_Footer", model)); }