public async Task GetTrackingCodesByStatusAsync_Most_Return_OkObjectResult() { var trackingCodeList = new List <string> { "trackingCodeTest1", "trackingCodeTest2" }; mockPackageQueryHandler.Setup(x => x.GetTrackingCodesByStatusAsync(1)).ReturnsAsync(trackingCodeList); var controller = new PackagesController(mockPackageQueryHandler.Object, mockPackageHandler.Object); var result = await controller.GetTrackingCodesByStatusAsync(1) as OkObjectResult; Assert.NotNull(result); Assert.NotNull(result.Value); Assert.Equal(200, result.StatusCode); mockPackageQueryHandler.VerifyAll(); }