Пример #1
0
 public void NullCorrelationIsLogged()
 {
     sut = new RequestLoggingFilter(loggerFactory);
     context.ActionArguments.Add("Key1", "Value1");
     context.ActionArguments.Add("Key2", "Value2");
     sut.OnActionExecuting(context);
     logger.Received().LogVerbose(null, "Request received: {0}({1})", null, "Key1: Value1, Key2: Value2");
 }
Пример #2
0
 public void NullContextThrowsError()
 {
     sut.OnActionExecuting(null);
 }