Replaced typemock with Rhino mocks