Using Microsoft Fakes, how do you fake a method with generics? (Mocking UpdateModel() )
Using MSTest and Fakes as my mocking framework, I was writing unit tests against an MVC controller and I needed to mock Controller.UpdateModel<TModel>(TModel). How do you do that? How do you fake out methods with generics? In my example, in my controller action, I’m pulling a Series object from my repository and I want UpdateModel() … [Read more…]