private ExchangeRateInfo ReadExchangeRates() { IEcbXmlParser ecbXmlParser = new EcbXmlParserImpl(); IXmlLoader xmlLoader = new XmlLoaderImpl(); return(ecbXmlParser.ReadExchangeRatesFromEcbXml(xmlLoader.LoadLocalXmlFile("eurofxref-daily.xml"))); }
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); }