public async Task GetList() { var query = new ListQueryModel <PartnerDto>(); var response = new ListResponseModel <PartnerDto>(query, 100, new List <PartnerDto>()); _mockMediator.Setup(x => x.Send(query, It.IsAny <CancellationToken>())) .ReturnsAsync(response); var result = await _sut.GetList(query); Assert.IsAssignableFrom <OkObjectResult>(result.Result); Assert.AreEqual(response, ((OkObjectResult)result.Result).Value); }