public IXRoadHeader20 CreateHeader(string name, string value) { var tuple = ParseXRoadHeaderHelper.ParseHeader($"<xrd:{name}>{value}</xrd:{name}>", NamespaceConstants.XTEE); Assert.NotNull(tuple.Item1); Assert.IsType <XRoadHeader20>(tuple.Item1); Assert.Same(Globals.XRoadProtocol20, tuple.Item3); return((IXRoadHeader20)tuple.Item1); }
public static Tuple <IXRoadHeader, IList <XElement>, IServiceManager> ParseHeader(string xml) { return(ParseXRoadHeaderHelper.ParseHeader(xml, NamespaceConstants.XROAD_V4)); }
public static Tuple <IXRoadHeader, IList <XElement>, IXRoadProtocol> ParseHeader(string xml) { return(ParseXRoadHeaderHelper.ParseHeader(xml, NamespaceConstants.XROAD)); }