private static SendingProcessingMode ExercisePModeDecorationWithSmp(string smpResponse)
        {
            var sut = new PeppolDynamicDiscoveryProfile();

            var pmode       = new SendingProcessingMode();
            var smpMetaData = new XmlDocument();

            smpMetaData.LoadXml(smpResponse);

            return(sut.DecoratePModeWithSmpMetaData(pmode, smpMetaData).CompletedSendingPMode);
        }
        private static SendingProcessingMode ExercisePModeDecorationWithSmp(XDocument smpResponse, SendingProcessingMode pmode)
        {
            var sut = new PeppolDynamicDiscoveryProfile();

            var smpMetaData = new XmlDocument();

            using (XmlReader reader = smpResponse.CreateReader())
            {
                smpMetaData.Load(reader);
                return(sut.DecoratePModeWithSmpMetaData(pmode, smpMetaData).CompletedSendingPMode);
            }
        }