public async Task When_Calling_update_mediator_invokes_handler() { _mediator.Setup(x => x.Send(It.IsAny <UpdateOrganisationRequest>(), It.IsAny <CancellationToken>())).ReturnsAsync(true); await _controller.Update(new UpdateOrganisationRequest()); _mediator.Verify(x => x.Send(It.IsAny <UpdateOrganisationRequest>(), It.IsAny <CancellationToken>()), Times.Once); }