Exemplo n.º 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");
 }
Exemplo n.º 2
0
 public void NullContextThrowsError()
 {
     sut.OnActionExecuting(null);
 }