Exemplo n.º 1
0
 public void Should_define_sections()
 {
     AsGridModel.Sections.RowStart(x => "foo");
     AsGridModel.Sections.Row
     .StartSectionRenderer(
         new GridRowViewData <Person>(new Person(), false),
         GridRendererTester.FakeRenderingContext())
     .ShouldBeTrue();
 }
Exemplo n.º 2
0
        public void RowEnd_actoion_should_be_stored_when_rendered()
        {
            var model = new GridModel <Person>();

            _grid.WithModel(model).RowEnd((p) => { });
            _grid.ToString();
            ((IGridModel <Person>)model).Sections.Row
            .EndSectionRenderer(
                new GridRowViewData <Person>(new Person(), true),
                GridRendererTester.FakeRenderingContext()
                ).ShouldBeTrue();
        }
Exemplo n.º 3
0
        public void RowStart_section_should_be_stored_when_rendered()
        {
            var model = new GridModel <Person>();

            _grid.WithModel(model).RowStart(x => "foo");
            _grid.ToString();
            ((IGridModel <Person>)model).Sections.Row
            .StartSectionRenderer(
                new GridRowViewData <Person>(new Person(), true),
                GridRendererTester.FakeRenderingContext()
                ).ShouldBeTrue();
        }