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

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

            grid.Definition.AllowCreationOfNew.ShouldBeFalse();

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

            grid.Definition.CanSaveQuery.ShouldBeTrue();
        }