Exemplo n.º 1
0
 public static void SetRequestDetails(this IHttpRequestSpanBuilder builder, Request request)
 {
     builder.SetRequestDetails(
         request.Url,
         request.Method,
         request.Content?.Length ??
         request.CompositeContent?.Length ??
         request.StreamContent?.Length);
 }
Exemplo n.º 2
0
        public void SetRequestDetails_should_record_request_url_and_method()
        {
            builder.SetRequestDetails(request);

            builder.Received(1).SetRequestDetails(request.Url, request.Method, null);
        }