public void GetKLEXMLData_Returns_Valid_XML() { var sut = new KLEDataBridge(); var result = sut.GetAllActiveKleNumbers(); var publishingDateXElement = result.Descendants("UdgivelsesDato"); DateTime.Parse(publishingDateXElement.First().Value); }
void GetKLEXMLData_Returns_Most_Current_DataSet() { var sut = new KLEDataBridge(); XDocument result = sut.GetKLEXMLData(); var publishingDate = result.Element("UdgivelsesDato"); DateTime.Parse(publishingDate.Value); }