Esempio n. 1
0
        public void should_Generate_Manifest_With_Metrics()
        {
            var manifests = _packager.GenerateWithMetrics(TestInitializer.IqEmrDto).ToList();

            Assert.True(manifests.Any());
            Assert.True(manifests.Count == 1);
            var m = manifests.First();

            Assert.True(m.Cargoes.Any(x => x.Type == CargoType.Patient));
            Assert.True(m.Cargoes.Any(x => x.Type == CargoType.Metrics));
            Assert.True(m.Cargoes.Any(x => x.Type == CargoType.AppMetrics));
            Log.Debug($"{m}");
            m.Cargoes.ForEach(c =>
            {
                Log.Debug($"{c.Type}");
                Log.Debug($"     {c.Items} ");
            });
        }
Esempio n. 2
0
        public void should_Generate_Manifest_With_Metrics()
        {
            var manfiests = _packager.GenerateWithMetrics();

            Assert.True(manfiests.Any());
            var m = manfiests.First();

            Assert.True(m.Cargoes.Any(x => x.Type == CargoType.Patient));
            Assert.True(m.Cargoes.Any(x => x.Type == CargoType.Metrics));
            Console.WriteLine($"{m} |{m.Cargoes.First().Type} < {m.Cargoes.First(x=>x.Type==CargoType.Patient).Items} ");
            Console.WriteLine($"{m} |{m.Cargoes.First().Type} < {m.Cargoes.First(x=>x.Type==CargoType.Metrics).Items} ");
        }
Esempio n. 3
0
 public Task <List <SendManifestResponse> > SendManifestAsync(SendManifestPackageDTO sendTo, string version)
 {
     return(SendManifestAsync(sendTo, ManifestMessageBag.Create(_packager.GenerateWithMetrics(sendTo.GetEmrDto()).ToList()), version));
 }
Esempio n. 4
0
 public Task <List <SendManifestResponse> > SendManifestAsync(SendManifestPackageDTO sendTo)
 {
     return(SendManifestAsync(sendTo, ManifestMessageBag.Create(_packager.GenerateWithMetrics().ToList())));
 }