public async Task GetDiff_ShouldGetFullMatch() { _differenceRepository.GetFirstOrDefaultAsync(Arg.Any <Expression <Func <Difference, bool> > >(), Arg.Any <string>()) .ReturnsForAnyArgs(TestConstants.FullMatchDiff); DiffResult result = await _service.GetDiffResult(TestConstants.DiffId); Assert.True(result.Type == DiffResultType.FullMatch); Assert.Null(result.Diffs); }
/// See <see cref="IDiffService.GetDiffResult(int)"/> for more information. public async Task <DiffResult> GetDiffResult(int diffId) { Difference diff = await _differenceRepository.GetFirstOrDefaultAsync(d => d.Id == diffId, "DataItems"); return(GetDiffResult(diff)); }