public void GetIndividual() { XDocument benchmark = null; string format = "p7xml"; object response = _adapterProvider.GetItem( _settings["ProjectName"], _settings["ApplicationName"], _settings["GraphName"], _settings["ClassName"], _settings["Identifier"], ref format, false ); XDocument xDocument = (XDocument)response; string path = String.Format( "{0}GetXmlIndividual.xml", _settings["AppDataPath"] ); if (_settings["TestMode"].ToLower() != "usefiles") { xDocument.Save(path); Assert.AreNotEqual(null, xDocument); } else { benchmark = XDocument.Load(path); Assert.AreEqual(benchmark.ToString(), xDocument.ToString()); } }
public void GetItem(string project, string app, string resource, string id, string format) { try { //format = MapContentType(project, app, format); object content = _adapterProvider.GetItem(project, app, resource, String.Empty, id, ref format, false); _adapterProvider.FormatOutgoingMessage(content, format); } catch (Exception ex) { throw ex; } }