Пример #1
0
        public void Cells()
        {
            CellsBuilder cellsBuilder              = new CellsBuilder(null, null);
            CellsBuilder actionBuilder             = null;
            Dictionary <string, CellConfig> config = null;

            _builderFactory.CellsBuilder(Arg.Do <Dictionary <string, CellConfig> >(fc => config = fc))
            .Returns(cellsBuilder);

            RowBuilder <TableEntity> builder = _builder.Cells(fb => actionBuilder = fb);

            _builderFactory.Received(1).CellsBuilder(Arg.Any <Dictionary <string, CellConfig> >());
            actionBuilder.Should().BeSameAs(cellsBuilder);
            _builder.Config.CellConfigs.Should().BeSameAs(config);
            builder.Should().BeSameAs(_builder);
        }
Пример #2
0
 /// <summary>
 /// Configures the cells of the row.
 /// </summary>
 /// <param name="configAction">Configuration action</param>
 /// <returns>Cells builder.</returns>
 public RowBuilder <T> Cells(Action <CellsBuilder> configAction)
 {
     configAction(_builderFactory.CellsBuilder(Config.CellConfigs));
     return(this);
 }
Пример #3
0
 /// <summary>
 /// Configures the cells of the row.
 /// </summary>
 /// <param name="configAction">Configuration action</param>
 /// <returns>Cells builder.</returns>
 public MvcCoreBootstrapTableRowBuilder <T> Cells(Action <MvcCoreBootstrapTableCellsBuilder> configAction)
 {
     configAction(_builderFactory.CellsBuilder(Config.CellConfigs));
     return(this);
 }