Search found 2 matches
- Mon Sep 23, 2013 3:54 pm
- Forum: ScientiaMobile WURFL Cloud Service
- Topic: Unable to test with mock HttpContextBase in .Net
- Replies: 6
- Views: 11537
Re: Unable to test with mock HttpContextBase in .Net
I'm very happy to report back that a new API which I believe is soon to be released includes an option to query by user agent string instead of the full HttpContext. This also allows the cloud service to be easily tested without having to mock up a lot of things :-) Example code with new API: var us...
- Sun Sep 22, 2013 1:54 am
- Forum: ScientiaMobile WURFL Cloud Service
- Topic: Unable to test with mock HttpContextBase in .Net
- Replies: 6
- Views: 11537
Unable to test with mock HttpContextBase in .Net
Hi Guys, I am testing out the cloud service but running into problems trying to write a few unit / integration tests. Error is: "Object reference not set to an instance of an object". Below is my code, any ideas what needs to be set in HttpContextBase for the request to work? And why doesn't the clo...