public async Task GetComparison_ExistingEntry_ShouldCompare() { _diffService.GetDiffResult(TestConstants.DiffId).Returns(new DiffResult { Type = DiffResultType.SizeMismatch }); IActionResult result = await _controller.GetComparisonResultAsync(TestConstants.DiffId); await _diffService.Received().GetDiffResult(TestConstants.DiffId); Assert.IsType <OkObjectResult>(result); }