Exemplo n.º 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);
        }
Exemplo n.º 2
0
        public void should_Init_Log_New()
        {
            var diffLog = _repository.InitLog("NDWH", "PatientStatusExtract");

            Assert.NotNull(diffLog);
        }