I'm trying to mock the Add method of subsonic SimpleRepository with Rihino mocks, I'm using the IRepository Interface but I'm new to mocking and dont know how to go from there, can this be done? thanks for your help.
C# – How to mock Add method of subsonic’s SimpleRepository
crhino-mockssubsonicsubsonic3
Related Topic
- C# – How to enumerate an enum
- C# – How to create a dropdownlist from an enum in ASP.NET MVC
- C# – Proper use of the IDisposable interface
- C# – How would you count occurrences of a string (actually a char) within a string
- C# – How to remedy “The breakpoint will not currently be hit. No symbols have been loaded for this document.” warning
- C# – How to set the Content-Type header for an HttpClient request
- Scala: list.flatten: no implicit argument matching parameter type (Any) = > Iterable[Any] was found
Best Answer
AdamRalph is correct, but I prefer the AAA syntax of Rhino Mocks: