private void assertBundle(IConformanceScanner scanner, string origin)
        {
            var list = scanner.List();

            Assert.AreEqual(4, list.Count);

            Assert.AreEqual(ResourceType.StructureDefinition, list[0].ResourceType);
            Assert.AreEqual("http://test.org/StructureDefinition/sd", list[0].ResourceUri);
            Assert.AreEqual("http://test.org/StructureDefinition/sd", list[0].Canonical);
            Assert.AreEqual(origin, list[0].Origin);

            Assert.AreEqual(ResourceType.ValueSet, list[1].ResourceType);
            Assert.AreEqual("http://test.org/ValueSet/vs", list[1].ResourceUri);
            Assert.AreEqual("http://test.org/ValueSet/vs", list[1].Canonical);
            Assert.AreEqual("http://test.org/vs/testsystem", list[1].ValueSetSystem);
            Assert.AreEqual(origin, list[1].Origin);

            Assert.AreEqual(ResourceType.NamingSystem, list[2].ResourceType);
            Assert.AreEqual("http://test.org/NamingSystem/ns", list[2].ResourceUri);
            Assert.AreEqual("http://test.org/ns/testname1", list[2].UniqueIds.First());
            Assert.AreEqual("http://test.org/ns/testname2", list[2].UniqueIds.Skip(1).First());
            Assert.AreEqual(origin, list[2].Origin);

            Assert.AreEqual(ResourceType.ConceptMap, list[3].ResourceType);
            Assert.AreEqual("http://test.org/ConceptMap/cm", list[3].ResourceUri);
            Assert.AreEqual("http://test.org/ConceptMap/cm", list[3].Canonical);
            Assert.AreEqual("http://test.org/source", list[3].ConceptMapSource);
            Assert.AreEqual("http://test.org/target", list[3].ConceptMapTarget);
            Assert.AreEqual(origin, list[3].Origin);
        }
        private void assertExample(IConformanceScanner scanner, string origin)
        {
            var list = scanner.List();

            Assert.AreEqual(1, list.Count);

            Assert.AreEqual(ResourceType.Patient, list[0].ResourceType);
            Assert.AreEqual("http://example.org/Patient/1234", list[0].ResourceUri);
            Assert.IsNull(list[0].Canonical);
            Assert.AreEqual(origin, list[0].Origin);
        }
        private void assertSingle(IConformanceScanner scanner, string origin)
        {
            var list = scanner.List();

            Assert.AreEqual(1, list.Count);

            Assert.AreEqual(ResourceType.StructureDefinition, list[0].ResourceType);
            Assert.AreEqual("http://test.org/StructureDefinition/sd", list[0].ResourceUri);
            Assert.AreEqual("http://test.org/StructureDefinition/sd", list[0].Canonical);
            Assert.AreEqual(origin, list[0].Origin);
        }