public void Filterable() { FilteringBuilder filteringBuilder = new FilteringBuilder(null); FilteringBuilder actionBuilder = null; FilteringConfig config = null; _builderFactory.FilteringBuilder(Arg.Do <FilteringConfig>(fc => config = fc)).Returns(filteringBuilder); ColumnBuilder builder = _builder.Filterable(fb => actionBuilder = fb); _builderFactory.Received(1).FilteringBuilder(Arg.Any <FilteringConfig>()); actionBuilder.Should().BeSameAs(filteringBuilder); config.Should().BeSameAs(_columnConfig.Filtering); builder.Should().BeSameAs(_builder); }
internal MvcCoreBootstrapTableFilteringBuilder(FilteringConfig config) { _config = config; }
internal FilteringBuilder(FilteringConfig config) { _config = config; }
public FilteringBuilderTest() { _config = new FilteringConfig(); _builder = new FilteringBuilder(_config); }
public MvcCoreBootstrapTableFilteringBuilder FilteringBuilder(FilteringConfig config) { return(new MvcCoreBootstrapTableFilteringBuilder(config)); }
public FilteringBuilder FilteringBuilder(FilteringConfig config) { return(new FilteringBuilder(config)); }