public async Task ThenIShouldReturnCorrectOrganisations() { //Act var result = await _controller.GetEducaltionalOrganisation() as OkNegotiatedContentResult <PagedApiResponse <EducationOrganisation> >; //Assert _mediator.Verify(x => x.SendAsync(It.IsAny <FindEducationalOrganisationsQuery>()), Times.Once); Assert.IsNotNull(result); Assert.AreEqual(_response.Organisations, result.Content); }