Exemple #1
0
        public void should_Generate_Diff_Manifest_With_Metrics()
        {
            var manifests = _packager.GenerateDiffWithMetrics(TestInitializer.IqEmrDto).ToList();

            Assert.False(manifests.Any(x => x.UploadMode != UploadMode.Differential));
            Assert.True(manifests.Any());
            Assert.True(manifests.Count == 1);
            var m = manifests.First();

            Assert.True(m.PatientPks.Any());
            Assert.True(m.FacMetrics.Any(x => x.CargoType == CargoType.Metrics));
            Assert.True(m.FacMetrics.Any(x => x.CargoType == CargoType.AppMetrics));
            Log.Debug($"{m} [{m.UploadMode}]");
            m.FacMetrics.ForEach(c =>
            {
                Log.Debug($"{c.CargoType}");
                Log.Debug($"     {c.Metric} ");
            });
        }
Exemple #2
0
 public Task <List <SendDhwManifestResponse> > SendDiffManifestAsync(SendManifestPackageDTO sendTo, string version)
 {
     return(SendManifestAsync(sendTo, DwhManifestMessageBag.Create(_packager.GenerateDiffWithMetrics(sendTo.GetEmrDto()).ToList()), version));
 }