private SendingProcessingMode ExerciseDecorate(SendingProcessingMode pmode, SmpConfiguration smpResponse)
        {
            var doc = new XmlDocument();

            doc.LoadXml(AS4XmlSerializer.ToString(smpResponse));

            var sut = new LocalDynamicDiscoveryProfile(GetDataStoreContext);

            return(sut.DecoratePModeWithSmpMetaData(pmode, doc).CompletedSendingPMode);
        }
        public void DecorateMandatoryInfoToSendingPMode()
        {
            // Arrange
            var smpResponse = new SmpConfiguration
            {
                PartyRole = "role",
                Url       = "http://some/url"
            };

            var doc = new XmlDocument();

            doc.LoadXml(AS4XmlSerializer.ToString(smpResponse));

            var pmode = new SendingProcessingMode();
            var sut   = new LocalDynamicDiscoveryProfile(GetDataStoreContext);

            // Act
            SendingProcessingMode actual = sut.DecoratePModeWithSmpMetaData(pmode, doc).CompletedSendingPMode;

            // Assert
            Assert.Equal(smpResponse.Url, actual.PushConfiguration.Protocol.Url);
        }