Exemplo n.º 1
0
        public void can_save_query()
        {
            var grid = new FakeCaseGrid();

            grid.CanSaveQuery(false);
            grid.Definition.CanSaveQuery.ShouldBeFalse();
        }
Exemplo n.º 2
0
        public void allow_create_new()
        {
            var grid = new FakeCaseGrid();

            grid.Definition.AllowCreationOfNew.ShouldBeFalse();

            grid.AllowCreateNew();
            grid.Definition.AllowCreationOfNew.ShouldBeTrue();
        }
Exemplo n.º 3
0
        public void do_not_allow_user_sorting_overwrites_sortable_on_all_columns()
        {
            var grid = new FakeCaseGrid();

            grid.DoNotAllowUserSorting();

            var model = grid.ToColumnModel();

            model.Any().ShouldBeTrue();

            model.Each(dict => dict["sortable"].ShouldEqual(false));
        }
Exemplo n.º 4
0
        public void can_save_query_is_true_by_default()
        {
            var grid = new FakeCaseGrid();

            grid.Definition.CanSaveQuery.ShouldBeTrue();
        }