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