Posts

Showing posts with the label Unit Tests

Setting up Rhino Mock Stubs

A quick template below for the basic setup of Rhino Mocks Stubs...

MVC Unit Testing Asserts with Rhino Mocks

When I first started learning to use mocking frameworks I was lucky enough to start on Moq which was nice and simple. Whenever I needed to know something there was one single google code page which told everything. Nice! Rhino Mock by example I find hard work, so I put this cheat sheet together to help get up and running quickly.

Mocking the Controller Context using Rhino Mock

When using ASP.NET MVC 5, its easy to write unit tests around the framework due to the various abstractions provided.