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); }
public JournaledEvent Mutate(JournaledEvent journaledEvent) { journaledEvent.SetHeader(m_headerName, "A"); return(journaledEvent); }