Hi all,
I'm trying to set a ref attribute in a method of a mocked object.
I've a SaveUsers method which take a List<User> by ref. I want to setup the call back for every call I have on this method, doesn't matter the value of the List. So here is what I've written :
var isAny = It.IsAny<List<User>>();
this._helper.AdministrationServiceMock.Setup(a=>a.SaveUsers(ref isAny)).Callback()
But callback never execute, I've try to verify the call, but never called.
Sure I miss something but don't see it.
Thanks for your help.