jeudi 20 août 2015

Unit testing routing in ASP.NET MVC 6 (ASP.NET 5.0)

As the architecture of MVC 6 changed significantly, how would one go about unit testing the routing?

As an example, I like the libraries such as this one (as for <= MVC 5): http://ift.tt/11zADrE

Something down the lines of fluent extension methods:

routes.ShouldMap("/").To<HomeController>(x => x.Index());

Aucun commentaire:

Enregistrer un commentaire