Hopefully, this has been a useful insight into the world of
mock objects and in particular Rhino Mocks. We have covered what a mock
object is, the supporting tools, an example of using Rhino Mocks to replace the
code which depends on the system time at runtime and covered the limitations of
mocks.
In the next article in the series I plan to discuss the
alternatives to mock objects and how to use mock objects to replace your data
access layer.