示例#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());
        }
示例#2
0
 public void GuidEventInstanceIdLogEntryContextProvider_Constructor_ConstructsOkWithNullFilter()
 {
     var provider = new GuidEventInstanceIdLogEntryContextProvider(null);
 }
示例#3
0
 public void GuidEventInstanceIdLogEntryContextProvider_Constructor_ConstructsOk()
 {
     var provider = new GuidEventInstanceIdLogEntryContextProvider();
 }