public void SetHeaders_WhenValueIsNull_RemovesHeader(
            JournaledEvent journaledEvent,
            string headerName,
            string headerValue)
        {
            journaledEvent.SetHeader(headerName, headerValue);

            journaledEvent.SetHeader(headerName, null);

            Assert.False(journaledEvent.Headers.ContainsKey(headerName));
        }
        public void SetHeaders_AddValueToHeadersDictionary(
            JournaledEvent journaledEvent,
            string headerName,
            string headerValue)
        {
            journaledEvent.SetHeader(headerName, headerValue);

            Assert.Equal(journaledEvent.Headers[headerName], headerValue);
        }
示例#3
0
        public JournaledEvent Mutate(JournaledEvent journaledEvent)
        {
            journaledEvent.SetHeader(m_headerName, "A");

            return(journaledEvent);
        }