@@ -88,7 +88,7 @@ private static IHttpRequestMessagesCheck WithHttpVersion(this IHttpRequestMessag
8888 /// <summary>
8989 /// Asserts whether requests were made with a specific header name. Values are ignored.
9090 /// </summary>
91- /// <remarks>This method only asserts headers on <see cref="System.Net.Http.Headers.HttpRequestHeader "/></remarks>
91+ /// <remarks>This method only asserts headers on <see cref="System.Net.Http.Headers.HttpRequestHeaders "/></remarks>
9292 /// <param name="check">The implementation that hold all the request messages.</param>
9393 /// <param name="headerName">The name of the header that is expected.</param>
9494 /// <returns>The <seealso cref="IHttpRequestMessagesCheck"/> for further assertions.</returns>
@@ -97,7 +97,7 @@ private static IHttpRequestMessagesCheck WithHttpVersion(this IHttpRequestMessag
9797 /// <summary>
9898 /// Asserts whether requests were made with a specific header name. Values are ignored.
9999 /// </summary>
100- /// <remarks>This method only asserts headers on <see cref="System.Net.Http.Headers.HttpRequestHeader "/></remarks>
100+ /// <remarks>This method only asserts headers on <see cref="System.Net.Http.Headers.HttpRequestHeaders "/></remarks>
101101 /// <param name="check">The implementation that hold all the request messages.</param>
102102 /// <param name="headerName">The name of the header that is expected.</param>
103103 /// <param name="expectedNumberOfRequests">The expected number of requests.</param>
@@ -115,7 +115,7 @@ private static IHttpRequestMessagesCheck WithRequestHeader(this IHttpRequestMess
115115 /// <summary>
116116 /// Asserts whether requests were made with a specific header name and value.
117117 /// </summary>
118- /// <remarks>This method only asserts headers on <see cref="System.Net.Http.Headers.HttpRequestHeader "/></remarks>
118+ /// <remarks>This method only asserts headers on <see cref="System.Net.Http.Headers.HttpRequestHeaders "/></remarks>
119119 /// <param name="check">The implementation that hold all the request messages.</param>
120120 /// <param name="headerName">The name of the header that is expected.</param>
121121 /// <param name="headerValue">The value of the expected header, supports wildcards.</param>
@@ -125,7 +125,7 @@ private static IHttpRequestMessagesCheck WithRequestHeader(this IHttpRequestMess
125125 /// <summary>
126126 /// Asserts whether requests were made with a specific header name and value.
127127 /// </summary>
128- /// <remarks>This method only asserts headers on <see cref="System.Net.Http.Headers.HttpRequestHeader "/></remarks>
128+ /// <remarks>This method only asserts headers on <see cref="System.Net.Http.Headers.HttpRequestHeaders "/></remarks>
129129 /// <param name="check">The implementation that hold all the request messages.</param>
130130 /// <param name="headerName">The name of the header that is expected.</param>
131131 /// <param name="headerValue">The value of the expected header, supports wildcards.</param>
@@ -145,7 +145,7 @@ private static IHttpRequestMessagesCheck WithRequestHeader(this IHttpRequestMess
145145 /// <summary>
146146 /// Asserts whether requests were made with a specific header name. Values are ignored.
147147 /// </summary>
148- /// <remarks>This method only asserts headers on <see cref="System.Net.Http.Headers.HttpContentHeader "/></remarks>
148+ /// <remarks>This method only asserts headers on <see cref="System.Net.Http.Headers.HttpContentHeaders "/></remarks>
149149 /// <param name="check">The implementation that hold all the request messages.</param>
150150 /// <param name="headerName">The name of the header that is expected.</param>
151151 /// <returns>The <seealso cref="IHttpRequestMessagesCheck"/> for further assertions.</returns>
@@ -154,7 +154,7 @@ private static IHttpRequestMessagesCheck WithRequestHeader(this IHttpRequestMess
154154 /// <summary>
155155 /// Asserts whether requests were made with a specific header name. Values are ignored.
156156 /// </summary>
157- /// <remarks>This method only asserts headers on <see cref="System.Net.Http.Headers.HttpContentHeader "/></remarks>
157+ /// <remarks>This method only asserts headers on <see cref="System.Net.Http.Headers.HttpContentHeaders "/></remarks>
158158 /// <param name="check">The implementation that hold all the request messages.</param>
159159 /// <param name="headerName">The name of the header that is expected.</param>
160160 /// <param name="expectedNumberOfRequests">The expected number of requests.</param>
@@ -172,17 +172,17 @@ private static IHttpRequestMessagesCheck WithContentHeader(this IHttpRequestMess
172172 /// <summary>
173173 /// Asserts whether requests were made with a specific header name and value.
174174 /// </summary>
175- /// <remarks>This method only asserts headers on <see cref="System.Net.Http.Headers.HttpContentHeader "/></remarks>
175+ /// <remarks>This method only asserts headers on <see cref="System.Net.Http.Headers.HttpContentHeaders "/></remarks>
176176 /// <param name="check">The implementation that hold all the request messages.</param>
177177 /// <param name="headerName">The name of the header that is expected.</param>
178178 /// <param name="headerValue">The value of the expected header, supports wildcards.</param>
179179 /// <returns>The <seealso cref="IHttpRequestMessagesCheck"/> for further assertions.</returns>
180- public static IHttpRequestMessagesCheck WithContentHeader ( this IHttpRequestMessagesCheck check , string headerName , string headerValue ) => WithContentHeader ( check , headerName , headerValue , ( int ? ) null ) ;
180+ public static IHttpRequestMessagesCheck WithContentHeader ( this IHttpRequestMessagesCheck check , string headerName , string headerValue ) => WithContentHeader ( check , headerName , headerValue , null ) ;
181181
182182 /// <summary>
183183 /// Asserts whether requests were made with a specific header name and value.
184184 /// </summary>
185- /// <remarks>This method only asserts headers on <see cref="System.Net.Http.Headers.HttpContentHeader "/></remarks>
185+ /// <remarks>This method only asserts headers on <see cref="System.Net.Http.Headers.HttpContentHeaders "/></remarks>
186186 /// <param name="check">The implementation that hold all the request messages.</param>
187187 /// <param name="headerName">The name of the header that is expected.</param>
188188 /// <param name="headerValue">The value of the expected header, supports wildcards.</param>
@@ -231,7 +231,7 @@ private static IHttpRequestMessagesCheck WithHeader(this IHttpRequestMessagesChe
231231 /// <param name="headerName">The name of the header that is expected.</param>
232232 /// <param name="headerValue">The value of the expected header, supports wildcards.</param>
233233 /// <returns>The <seealso cref="IHttpRequestMessagesCheck"/> for further assertions.</returns>
234- public static IHttpRequestMessagesCheck WithHeader ( this IHttpRequestMessagesCheck check , string headerName , string headerValue ) => WithHeader ( check , headerName , headerValue , ( int ? ) null ) ;
234+ public static IHttpRequestMessagesCheck WithHeader ( this IHttpRequestMessagesCheck check , string headerName , string headerValue ) => WithHeader ( check , headerName , headerValue , null ) ;
235235
236236 /// <summary>
237237 /// Asserts whether requests were made with a specific header name and value.
@@ -293,6 +293,7 @@ private static IHttpRequestMessagesCheck WithContent(this IHttpRequestMessagesCh
293293 /// </summary>
294294 /// <param name="check">The implementation that hold all the request messages.</param>
295295 /// <param name="jsonObject">The object representation of the expected request content.</param>
296+ /// <param name="jsonSerializerOptions">The serializer options that should be used for serializing te content.</param>
296297 /// <returns>The <seealso cref="IHttpRequestMessagesCheck"/> for further assertions.</returns>
297298 /// <remarks>Note that on .NET Framework, the HttpClient might dispose the content after sending the request.</remarks>
298299 public static IHttpRequestMessagesCheck WithJsonContent ( this IHttpRequestMessagesCheck check , object ? jsonObject , JsonSerializerOptions jsonSerializerOptions ) => WithJsonContent ( check , jsonObject , jsonSerializerOptions , null ) ;
@@ -312,6 +313,7 @@ private static IHttpRequestMessagesCheck WithContent(this IHttpRequestMessagesCh
312313 /// </summary>
313314 /// <param name="check">The implementation that hold all the request messages.</param>
314315 /// <param name="jsonObject">The object representation of the expected request content.</param>
316+ /// <param name="jsonSerializerOptions">The serializer options that should be used for serializing the content.</param>
315317 /// <param name="expectedNumberOfRequests">The expected number of requests.</param>
316318 /// <returns>The <seealso cref="IHttpRequestMessagesCheck"/> for further assertions.</returns>
317319 /// <remarks>Note that on .NET Framework, the HttpClient might dispose the content after sending the request.</remarks>
0 commit comments