public void WhenCallingJsonFulfill_ThenDelegatesToBusinessServices() { const int reminderId = 321; Mock <FulfillReminder> handler = MockHandlerFor( () => new Mock <FulfillReminder>(null), x => x .Setup(h => h.Execute(reminderId)) .Verifiable("fulfil hanlder was not called")); ReminderController controller = GetTestableReminderController(); controller.JsonFulfill(reminderId); handler.Verify(); }