Пример #1
0
        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);
        }