I\'m trying to verify a method call using Moq, but I can\'t quite get the syntax right. Currently I\'ve go this as my verify:
repository.Verify(x => x.Execute
One option is to "verify" it in a Callback. Obviously this needs to be done at Setup time, e.g.:
aMock.Setup(x => x.Method(It.IsAny())).Callback( (p1) => { dynamic o = p1; Assert.That(o.Name, Is.EqualTo("Bilbo")); });