Ejemplo n.º 1
0
 public void LoggingEventUserNameIsAddedToUserCustomData()
 {
     LoggingEventAssert.When(l => l.UserName = "******")
     .Property(l => l.UserName)
     .ShouldMapTo(UserCustomDataBuilder.UserCustomDataKey.UserName);
 }
Ejemplo n.º 2
0
 public void LoggingEventLevelIsAddedToUserCustomData()
 {
     LoggingEventAssert.When(l => l.Level = Level.Debug)
     .Property(l => l.Level.Name)
     .ShouldMapTo(UserCustomDataBuilder.UserCustomDataKey.Level);
 }
Ejemplo n.º 3
0
 public void LoggingEventIdentityIsAddedToUserCustomData()
 {
     LoggingEventAssert.When(l => l.Identity = "TestIdentity")
     .Property(l => l.Identity)
     .ShouldMapTo(UserCustomDataBuilder.UserCustomDataKey.Identity);
 }
Ejemplo n.º 4
0
 public void LoggingEventDomainIsAddedToUserCustomData()
 {
     LoggingEventAssert.When(l => l.Domain = "TestDomain")
     .Property(l => l.Domain)
     .ShouldMapTo(UserCustomDataBuilder.UserCustomDataKey.Domain);
 }