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

Support custom simple model types which have a string converter (i.e. TypeConverter). #63

Closed aidinabedi closed 9 years ago

aidinabedi commented 9 years ago

Hello Anthony,

I've been using your MvcRouteTester for a while and I think it's great! The current project I'm working has multiple controllers that need to be able to receive a model type from a single string. Obviously this be done by using the property on the model type. But it would decrease code readability and the quality of the auto-generated web api documentation. Therefore I took the time to add support for custom model types to be classified as simple if they have a string converter. I also improved the simple type classification in general. Please see commit comments.

Oh and in addition, I added tests to demonstrate that it works!

AnthonySteele commented 9 years ago

Looks good, I am going to merge now and process in the next week.