Ejemplo n.º 1
0
        public void RecreatingCoreZipArtifact()
        {
            var fa = new CoreZipArtifactSource();

            fa.Prepare(); // First time might be expensive...

            Stopwatch sw = new Stopwatch();

            for (var loop = 0; loop < 50; loop++)
            {
                fa = new CoreZipArtifactSource();
                fa.Prepare();
            }

            sw.Stop();

            Assert.IsTrue(sw.ElapsedMilliseconds < 20 * 50);
        }
Ejemplo n.º 2
0
        public void GetSomeBundledArtifacts()
        {
            var za = new CoreZipArtifactSource();

            za.Prepare();

            using (var a = za.ReadContentArtifact("patient.sch"))
            {
                Assert.IsNotNull(a);
            }

            using (var a = za.ReadContentArtifact("core-valuesets-v3.xml"))
            {
                Assert.IsNotNull(a);
            }

            using (var a = za.ReadContentArtifact("patient.xsd"))
            {
                Assert.IsNotNull(a);
            }
        }