I need to check if a method is called, however it gets a parameter object that I cannot determine at design time. I don't care what a parameter is, I just want to check if the method is called.
So I would like to name something like this:
var subDao = new Mock<ISubscriptionSnapshotDao>(); subDao.Verify(x => x.Save(), Times.Exactly(1));
However, ISubscriptionSnapshotDao.Save takes an object to save.
Save(Subscription entity);
Is there any way to verify that Save was called without knowing which parameter would be?
source share