public async Task WhenPostingDeleteApplications_ThenApplicastionsDeleted() { // Arrange var request = new DeleteApplicationsRequest(); // Act var controllerResult = await _controller.DeleteApplications(request) as NoContentResult; // Assert controllerResult.StatusCode.Should().Be((int)HttpStatusCode.NoContent); _mockMediator.Verify(x => x.Send(request, It.IsAny <CancellationToken>())); }