Unit testing with JqGridRequest

Aug 24, 2011 at 9:56 PM

Most of the properties on the JqGridRequest class are read only.  This seems to make unit testing challenging.  For example, I cannot create a JqGridRequest object and assign a value to PageIndex.  Is there a reason it is defined this way?

Coordinator
Aug 25, 2011 at 6:43 AM

This is a very valid point - it will be changed in next release.

Aug 25, 2011 at 12:42 PM

Thanks.

I also thought about testing with the model binder directly, but discovered it is also declared as internal.  I'll admit I sometimes struggle with making things internal (or not) when developing a library for others to use.