Skip to content
This repository has been archived by the owner on May 19, 2024. It is now read-only.

Credits

Anthony Steele edited this page Feb 1, 2015 · 15 revisions

MvcRouteTester uses the basic ideas and code by Phil Haack for testing MVC Routes and by Filip W for testing API Routes. I have told them both about this use of their code and they are happy to see it here.

The idea behind writing strongly typed, fluent tests is from MvcContrib. Initial code from MvcContrib hacked on by Matt Gray and Daniel Kalotay at 7digital.


Pull requests on GitHub and other bug reports have come from:

  • Daniel Seifarth got it working in .Net 4.0. It was .Net 4.5 only before that.
  • Yves Reynhout removed the dependency on a mocking framework.
  • Glenn Doten Prompted me to add the ability to specify a request body and to verify that it is bound.
  • Saladin pointed out an issue where expectations could fail incorrectly when controller name and path differ in case.
  • Neil Stalker removed the dependency on NUnit.
  • Alex Brown reported a bug in parsing some fluent method expressions, and fixed a bug reading values into a nullable property on an input model. Also he reported a bug parsing DateTime values.
  • Nicholasham sent a patch to make custom routes that call into HttpContext.RewritePath work.
  • Lndcobra added two features: GeneratesActionUrl for testing that correct web route links are generated by Url.Action, and much improved support for MVC Areas.
  • Geoff-Mci reported an issue with testing GUID parameters and suggested a fix.
  • Josefresno reported an issue when a field on the model bound from the body has the same name as a route param.
  • bapti prompted me to allow post body as Json as well as form-url-encoded.
  • Emma Middlebrook reported a bug that routes to async methods were not supported.
  • Jason Risch contributed two features - Allow model validation to ignore certain properties on the models based on the property attributes, and testing the handler for an ApiRoute.
  • Steven Kuhn found a way to get attribute routing on web routes working in ASP MVC version 5.
  • Daniel Watts reported an issue in testing for the absence of an optional parameter on an Api controller.
  • MattHooperMT contributed the correct reading of ActionNameAttribute.
  • Alexandr Nikitin got attribute routing working in ASP MVC 5.1.
  • Joseph Dwyer added overloads adding to allow passing headers for custom route constraints.
  • Mark Carpenter fixed issues with enums and with async controller methods.

Version 1.3.1 rolls up fixes that three people have contributed in the last few months:

  • Srini Ragu: Support for custom inline constraint resolver with attributes.
  • Will Appleby: added overrides to WebRouteTestMapper to allow supply of IDirectRouteProvider implementation.
  • Kevin Corlett added a fix for an issue with web Api - it now finds a route with a matching HTTP method where many routes with similar signatures exist.

MvcRouteTester is put together by Anthony Steele.

Clone this wiki locally