public void Should_pass_aggregate_result_to_template_if_exists() { var expectedResult = new GridAggregateResult(new AggregateResult[0]); GridAggregateResult result = null; var template = new HtmlTemplate<GridAggregateResult> { InlineTemplate = arg => result = arg }; var cellBuilder = new GridFooterCellBuilder(new Dictionary<string, object>(), template) { AggregateResults = expectedResult }; cellBuilder.CreateCell().ToString(); result.ShouldBeSameAs(expectedResult); }
public void Should_pass_aggregate_result_to_template_if_exists() { var expectedResult = new GridAggregateResult(new AggregateResult[0]); GridAggregateResult result = null; var template = new HtmlTemplate <GridAggregateResult> { InlineTemplate = arg => result = arg }; var cellBuilder = new GridFooterCellBuilder(new Dictionary <string, object>(), template) { AggregateResults = expectedResult }; cellBuilder.CreateCell().ToString(); result.ShouldBeSameAs(expectedResult); }