Exemple #1
0
        private ExchangeRateInfo ReadExchangeRates()
        {
            IEcbXmlParser ecbXmlParser = new EcbXmlParserImpl();
            IXmlLoader    xmlLoader    = new XmlLoaderImpl();

            return(ecbXmlParser.ReadExchangeRatesFromEcbXml(xmlLoader.LoadLocalXmlFile("eurofxref-daily.xml")));
        }
Exemple #2
0
        public void ItCanReadTheXmlFileInTheTestProject()
        {
            var sut = new XmlLoaderImpl();

            var xmlDocument         = sut.LoadLocalXmlFile("eurofxref-daily.xml");
            var documentElementName = xmlDocument.DocumentElement.NamespaceURI + ":" + xmlDocument.DocumentElement.LocalName;

            Assert.Equal("http://www.gesmes.org/xml/2002-08-01:Envelope", documentElementName);
        }