Пример #1
0
        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);
        }
Пример #2
0
        public void should_Init_Log_New()
        {
            var diffLog = _repository.InitLog("NDWH", "PatientStatusExtract");

            Assert.NotNull(diffLog);
        }