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