Given the following:
var mockIActionService = new Mock<IActionService>();
var mockValidAgeRule = new Mock<ValidAgeRule>(mockIActionService.Object);
mockValidAgeRule.Setup(t => t.Execute(app));
Now t.Execute returns a "Rules" object, how can I verify that something has been called on Rules?
I am attempting to call it as such mockValidAgeRule.Verify(x => x.Execute(app).Passed)
I want to test that the object Result returned true given the inputs.
Sorry for all questions just am having a little trouble finding info about MOQ that is up to date and helpful