Possible duplicate:
How to mock a method that returns int with MOQ
Here is my interface:
public interface ICalenderService { DateTime Adjust(DateTime dateToAdjust, BusinessDayConvention convention, List<HolidayCity> holidayCities); }
I did some research, and it looks like you can easily mock this reality, but I want it to be disabled using Moq, so that I can pass the stub to my other class conductors and that the stub returns all DateTime I want to use its method Adjust .
What is the easiest way to do this?
Edit: I know that I can create my own stub in my project, but I would like to write less code, and I think that Moq can let me do this, I just don't know what the syntax looks like.
slandau
source share