public void can_save_query() { var grid = new FakeCaseGrid(); grid.CanSaveQuery(false); grid.Definition.CanSaveQuery.ShouldBeFalse(); }
public void allow_create_new() { var grid = new FakeCaseGrid(); grid.Definition.AllowCreationOfNew.ShouldBeFalse(); grid.AllowCreateNew(); grid.Definition.AllowCreationOfNew.ShouldBeTrue(); }
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)); }
public void can_save_query_is_true_by_default() { var grid = new FakeCaseGrid(); grid.Definition.CanSaveQuery.ShouldBeTrue(); }