Пример #1
0
        public void ProducesCorrectUntypedLocations()
        {
            var tp      = File.ReadAllText(@"TestData\fp-test-patient.json");
            var patient = getJsonNodeU(tp);

            ParseDemoPatient.ProducesCorrectUntypedLocations(patient);
        }
Пример #2
0
        public void HasLineNumbers()
        {
            var tp  = File.ReadAllText(@"TestData\fp-test-patient.json");
            var nav = getJsonNodeU(tp);

            ParseDemoPatient.HasLineNumbers <JsonSerializationDetails>(nav);
        }
Пример #3
0
        public void ElementNavPerformanceUntypedJson()
        {
            var tp  = File.ReadAllText(@"TestData\fp-test-patient.json");
            var nav = getJsonNodeU(tp);

            ParseDemoPatient.ElementNavPerformance(nav);
        }
 public void RoundtripJson()
 {
     ParseDemoPatient.RoundtripJson(jsonText =>
                                    getJsonNode(jsonText, new FhirJsonParsingSettings {
         AllowJsonComments = true
     }));
 }
Пример #5
0
        public void CanReadThroughTypedNavigator()
        {
            var tpXml = File.ReadAllText(@"TestData\fp-test-patient.xml");
            var nav   = getXmlNode(tpXml);

            ParseDemoPatient.CanReadThroughNavigator(nav, typed: true);
        }
        public void CanReadThroughTypedNavigator()
        {
            var tp  = File.ReadAllText(Path.Combine("TestData", "fp-test-patient.json"));
            var nav = getJsonNode(tp);

            ParseDemoPatient.CanReadThroughNavigator(nav, typed: true);
        }
        public void ElementNavPerformanceTypedJson()
        {
            var tp  = File.ReadAllText(Path.Combine("TestData", "fp-test-patient.json"));
            var nav = getJsonNode(tp);

            ParseDemoPatient.ElementNavPerformance(nav.ToSourceNode());
        }
Пример #8
0
        public void ProducesCorrectUntypedLocations()
        {
            var tpXml   = File.ReadAllText(@"TestData\fp-test-patient.xml");
            var patient = getXmlUntyped(tpXml);

            ParseDemoPatient.ProducesCorrectUntypedLocations(patient);
        }
Пример #9
0
        public void HasLineNumbers()
        {
            var tpXml = File.ReadAllText(@"TestData\fp-test-patient.xml");
            var nav   = getXmlUntyped(tpXml);

            ParseDemoPatient.HasLineNumbers <XmlSerializationDetails>(nav);
        }
        public void CheckBundleEntryNavigation()
        {
            var bundle = File.ReadAllText(Path.Combine("TestData", "BundleWithOneEntry.json"));
            var nav    = getJsonNode(bundle);

            ParseDemoPatient.CheckBundleEntryNavigation(nav);
        }
        public void HasLineNumbersTypedJson()
        {
            var tp  = File.ReadAllText(Path.Combine("TestData", "fp-test-patient.json"));
            var nav = getJsonNode(tp);

            ParseDemoPatient.HasLineNumbers <JsonSerializationDetails>(nav.ToSourceNode());
        }
        public void CheckBundleEntryNavigation()
        {
            var bundle = File.ReadAllText(Path.Combine("TestData", "BundleWithOneEntry.xml"));
            var node   = getXmlNode(bundle);

            ParseDemoPatient.CheckBundleEntryNavigation(node);
        }
        public void HasLineNumbersTypedXml()
        {
            var tpXml = File.ReadAllText(Path.Combine("TestData", "fp-test-patient.xml"));
            var nav   = getXmlNode(tpXml);

            ParseDemoPatient.HasLineNumbers <XmlSerializationDetails>(nav.ToSourceNode());
        }
        public void ElementNavPerformanceTypedXml()
        {
            var tpXml = File.ReadAllText(Path.Combine("TestData", "fp-test-patient.xml"));
            var nav   = getXmlNode(tpXml);

            ParseDemoPatient.ElementNavPerformance(nav.ToSourceNode());
        }
        public void ProducesCorrectTypedLocations()
        {
            var tp      = File.ReadAllText(Path.Combine("TestData", "fp-test-patient.json"));
            var patient = getJsonNode(tp);

            ParseDemoPatient.ProducedCorrectTypedLocations(patient);
        }
Пример #16
0
        public void ElementNavPerformanceUntypedXml()
        {
            var tpXml = File.ReadAllText(@"TestData\fp-test-patient.xml");
            var nav   = getXmlUntyped(tpXml);

            ParseDemoPatient.ElementNavPerformance(nav);
        }
Пример #17
0
        public void CheckBundleEntryNavigation()
        {
            var bundle = File.ReadAllText(@"TestData\BundleWithOneEntry.xml");
            var node   = getXmlUntyped(bundle);

#pragma warning disable 612, 618
            ParseDemoPatient.CheckBundleEntryNavigation(node.ToTypedElement());
#pragma warning restore 612, 618
        }
Пример #18
0
        public void CanReadThroughUntypedNavigator()
        {
            var tp  = File.ReadAllText(Path.Combine("TestData", "fp-test-patient.json"));
            var nav = getJsonNodeU(tp);

#pragma warning disable 612, 618
            ParseDemoPatient.CanReadThroughNavigator(nav.ToTypedElement(), typed: false);
#pragma warning restore 612, 618
        }
Пример #19
0
        public void CanReadThroughUntypedNavigator()
        {
            var tpXml = File.ReadAllText(@"TestData\fp-test-patient.xml");
            var nav   = getXmlUntyped(tpXml);

#pragma warning disable 612,618
            ParseDemoPatient.CanReadThroughNavigator(nav.ToTypedElement(), typed: false);
#pragma warning restore 612, 618
        }
Пример #20
0
        public void CheckBundleEntryNavigation()
        {
            var bundle = File.ReadAllText(@"TestData\BundleWithOneEntry.json");
            var nav    = getJsonNodeU(bundle);

#pragma warning disable 612,618
            ParseDemoPatient.CheckBundleEntryNavigation(nav.ToTypedElement());
#pragma warning restore 612, 618
        }
Пример #21
0
 public void RoundtripXmlUntyped()
 {
     ParseDemoPatient.RoundtripXml(xmlText => FhirXmlNode.Parse(xmlText));
 }
 public void RoundtripXml()
 {
     ParseDemoPatient.RoundtripXml(reader => XmlParsingHelpers.ParseToTypedElement(reader, new PocoStructureDefinitionSummaryProvider()));
 }