Created
October 10, 2014 15:15
-
-
Save tonyjoanes/5af399e23d10e1d2c942 to your computer and use it in GitHub Desktop.
MVC Route testing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[TestFixtureSetUp] | |
public void TestSetup() | |
{ | |
var routes = RouteTable.Routes; | |
routes.Clear(); | |
routes.MapRoute( | |
"Default", | |
"{controller}", | |
new {controller = "Recipe", action = "Healthy", id = ""} | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment