I have a class which has more information then my inteface. It has a property which I did not expose in my interface.
Quick Info: I\'m using C# 4.0 and RhinoMocks (with AAA) I\'ll explain with some code what I\'m thinking about doing:
F开发者_C百科or the given mock object below, how can I check if the WashCar(ICar car) method is setting the TiresWashed property?
Can you help to achieve the goal I mentioned in the commented block below to complete sample unit test?
Is my observation correct: public intercafe IMyInterface { bool IsOK {get;set;} } // If I use stub this always return true:
Trying to mock a function with RhinoMock. var repository = new Rhino.Mocks.MockRepository(); var classMock = repository.DynamicMock<Customer>();
We use MVC3, for our unit tests we use RhinoMocks in our unit tests. When the a request starts we check the domain from which it came and match that to a customer.
In a (web) application I\'ve implemented the MVP pattern for seperation of core concerns. My presenters directly query the database using LINQ-to-NHibernate, or sometimes they use query objects when t
I\'ve been looking at this Stackoverflow question and have the answer implemented.It works all fine and dandy until I get to call HtmlHelper.Partial in my helper method, which is listed below. I know
I have this type: [RequiresAuthentication] public class MobileRunReportHandler : IMobileRunReportHandler