Closed krimsonkla closed 11 years ago
I will have a look over the weekend. Unfortunately I don't know much about handlers.
Seems to be missing HasHandlerTests.cs Can you submit this in another pull request?
Sorry, things got a little busy. Will try to get to this over the week, or the weekend. Looks like I was missing some implementation for web routes and tests.
From: Anthony Steele notifications@github.com Sent: Saturday, November 9, 2013 12:03 PM To: AnthonySteele/MvcRouteTester Cc: Jason Risch Subject: Re: [MvcRouteTester] Apiroute handler testing (#28)
Seems to be missing HasHandlerTests.cs Can you submit this in another pull request?
Reply to this email directly or view it on GitHubhttps://github.com/AnthonySteele/MvcRouteTester/pull/28#issuecomment-28128969.
thanks, I will wait for that.
I'm going to put a version up on nuget, I think there's enough useful new stuff since the last one.
Nice! My apologies for not having gotten the other stuff covered. I have not forgotten!
From: Anthony Steele notifications@github.com Sent: Tuesday, November 19, 2013 6:22 PM To: AnthonySteele/MvcRouteTester Cc: Jason Risch Subject: Re: [MvcRouteTester] Apiroute handler testing (#28)
I'm going to put a version up on nuget, I think there's enough useful new stuff since the last one.
Reply to this email directly or view it on GitHubhttps://github.com/AnthonySteele/MvcRouteTester/pull/28#issuecomment-28836853.
Add the ability to test api route handlers. Useful for testing things like an authentication handler.
Usage: config.ShouldMap("/api/customer/32").WithHandler< AuthMessageHandler >();
Or: config.ShouldMap("/api/customer/32").To(HttpMethod.Get, x => x.Get(32)).WithHandler< AuthMessageHandler >();