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); }
/// <summary> /// Configures the table footer. /// </summary> /// <param name="configAction">Configuration action</param> /// <returns>The table builder instance.</returns> public MvcCoreBootstrapTableBuilder <T> Footer(Action <MvcCoreBootstrapTableFooterBuilder> configAction) { configAction(_builderFactory.FooterBuilder(_config.Footer)); return(this); }
/// <summary> /// Configures the table footer. /// </summary> /// <param name="configAction">Configuration action</param> /// <returns>The table builder instance.</returns> public TableBuilder <T> Footer(Action <FooterBuilder> configAction) { configAction(_builderFactory.FooterBuilder(_config.Footer)); return(this); }