public void should_Generate_Diff(string extract) { var diffLog = _repository.GenerateDiff("NDWH", extract); Assert.NotNull(diffLog); Assert.False(diffLog.MaxCreated.IsNullOrEmpty()); Assert.False(diffLog.MaxModified.IsNullOrEmpty()); }
public Task Handle(DocketExtractLoaded notification, CancellationToken cancellationToken) { var generatedDates = _repository.GenerateDiff(notification.Docket, $"{notification.Extract}s"); var diffLog = _repository.InitLog(notification.Docket, notification.Extract); if (null != diffLog) { diffLog.LogLoad(generatedDates.MaxCreated, generatedDates.MaxModified); _repository.SaveLog(diffLog); } return(Task.CompletedTask); }