Exemplo 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.Migration));
            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} ");
            });
        }
Exemplo n.º 2
0
 public Task <List <SendManifestResponse> > SendManifestAsync(SendManifestPackageDTO sendTo)
 {
     return(SendManifestAsync(sendTo, ManifestMessageBag.Create(_packager.GenerateWithMetrics(sendTo.GetEmrDto()).ToList())));
 }