Can someone please look at the code below and see what's wrong?
[TestInitialize]
public void SetupMockRepository()
{
var memberId = "34345235435354545345";
var title = "test";
var url = "dafdsfdsfdsfdsafd";
_mockPropertySearchRepository = new Mock<IPropertySearchRepository>(MockBehavior.Strict);
_mockPropertySearchRepository
.Setup(p => p.SaveSearchURL(It.IsAny<string>(), It.IsAny<string>(), It.IsAny<string>()))
.Callback<string,string,string>((id,t,u) => )
.Returns(new SavedSearchReturnResult() );
}
Thanks
For each parameter that the method takes, pass a type parameter to the
Callback
method.The above works both with
Protected
and normal callbacks.I managed to solve the problem myself as below