Hi!
I´m using MoQ to test some controllers I have but i'm not being able to set the expectations. This is the code I have:
var rep = new Mock<IUserRepository>();
rep.Setup(r => r.Save());
The problem is that, my Save() method expects a User object which I cannot set in the expectation because a instance of it will be created by the controller. Is it possible to set expectation without passing a specific parameter? Just check if the method was called no matter what parameter was passed?
Thanks a lot!