Beispiel #1
0
        public void can_save_query()
        {
            var grid = new FakeCaseGrid();

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

            grid.Definition.AllowCreationOfNew.ShouldBeFalse();

            grid.AllowCreateNew();
            grid.Definition.AllowCreationOfNew.ShouldBeTrue();
        }
Beispiel #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));
        }
Beispiel #4
0
        public void can_save_query_is_true_by_default()
        {
            var grid = new FakeCaseGrid();

            grid.Definition.CanSaveQuery.ShouldBeTrue();
        }