Ejemplo n.º 1
0
        public void GuidEventInstanceIdLogEntryContextProvider_AddProperties_AddsProperty()
        {
            var provider = new GuidEventInstanceIdLogEntryContextProvider();
            var logEvent = new LogEvent()
            {
                EventName  = "Test event",
                Properties = new Dictionary <string, object>()
            };

            provider.AddProperties(logEvent, null);
            Assert.IsTrue(logEvent.Properties.ContainsKey("Event Instance ID"));
            System.Guid.Parse(logEvent.Properties["Event Instance ID"].ToString());
        }
Ejemplo n.º 2
0
 public void GuidEventInstanceIdLogEntryContextProvider_Constructor_ConstructsOkWithNullFilter()
 {
     var provider = new GuidEventInstanceIdLogEntryContextProvider(null);
 }
Ejemplo n.º 3
0
 public void GuidEventInstanceIdLogEntryContextProvider_Constructor_ConstructsOk()
 {
     var provider = new GuidEventInstanceIdLogEntryContextProvider();
 }