I’ve written some custom model binders (implementing IModelBinder) in our ASP.NET MVC application. I’m wondering what is a good approach to unittest them (binders)?
I’ve written some custom model binders (implementing IModelBinder) in our ASP.NET MVC application. I’m
Share
I did it this way:
And then I just passed in the bindingContext variable to the BindModel method of the object that implements the IModelBinder interface.