AnthonySteele / MvcRouteTester

A library for unit testing ASP MVC route tables for both Web and API Routes
Apache License 2.0
105 stars 43 forks source link

Apiroute handler testing #28

Closed krimsonkla closed 11 years ago

krimsonkla commented 11 years ago

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 >();

AnthonySteele commented 11 years ago

I will have a look over the weekend. Unfortunately I don't know much about handlers.

AnthonySteele commented 11 years ago

Seems to be missing HasHandlerTests.cs Can you submit this in another pull request?

krimsonkla commented 11 years ago

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.

AnthonySteele commented 11 years ago

thanks, I will wait for that.

AnthonySteele commented 10 years ago

I'm going to put a version up on nuget, I think there's enough useful new stuff since the last one.

krimsonkla commented 10 years ago

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.