Mocking an HTTPContext
Dec 10
technology mocking, TDD, technology No Comments
I was trying to write some tests to test the Create method in my Controller and I needed to mock the User.IsInRole("Administrator") so that I can continue with my testing. So I was looking around for some help, and I found this very interesting blog from Scott Hanselman.
Its a library of MvcMockHelpers using either Rhino Mocks or Moq.
Related posts:








Follow Me!