Ejemplo n.º 1
0
        public void AddPropertiesToWrite()
        {
            var sut = new MessageProperties();

            sut.AddPropertiesToWrite(
                new[] {
                new PropertyValuePair(BtsProperties.MessageType.QName, nameof(BtsProperties.MessageType)),
                new PropertyValuePair(BtsProperties.InterchangeID.QName, nameof(BtsProperties.InterchangeID))
            });

            sut[MessagePropertiesExtensions.PROPERTIES_TO_WRITE_KEY].Should().BeOfType <List <PropertyValuePair> >().And.BeEquivalentTo(
                new[] {
                new PropertyValuePair(BtsProperties.MessageType.QName, nameof(BtsProperties.MessageType)),
                new PropertyValuePair(BtsProperties.InterchangeID.QName, nameof(BtsProperties.InterchangeID))
            });
        }