This question is locked. New answers and comments are not allowed.
In the style of TDD I'm trying to either stub or mock GridCommand. As the properties on GridCommand (such as PageSize/PageIndex) are not overridable this isn't possible. At the same time the FilterDescriptors and SortDescriptors properties are read-only so I can stub these.
I notice there is a static Parse method that returns a GridCommand object. Does anyone know the syntax for creating Filter and Sort Descriptors using this method?
e.g. var myNewCommand = GridCommand.Parse(3, 20, "ColumnA ASC", String.Empty, "ColumnB^Int^23");
Thanks.