This question is locked. New answers and comments are not allowed.
I am trying to create a mock object for the context. I have a class that extends OpenAccessContext that is my specific context for this part of my project. I then built a repository on top of that which contains custom logic for how to save, create and delete objects using the context. The context is injected into the constructor using Windsor Castle. I now want to write unit tests that pass in a mock context to the repository for testing but I cannot do that with the Mocking Framework I am using (Rhino.Mocks). I am not sure how to go about testing the repository as my unit tests cannot rely on a connection to the database. Please help.