|
8 | 8 | using Microsoft.Net.Http.Headers;
|
9 | 9 |
|
10 | 10 | /// <summary>
|
11 |
| - /// Used for testing HTTP not found result. |
| 11 | + /// Used for testing <see cref="NotFoundResult"/> or <see cref="NotFoundObjectResult"/>. |
12 | 12 | /// </summary>
|
13 | 13 | public interface INotFoundTestBuilder : IBaseTestBuilderWithResponseModel,
|
14 | 14 | IBaseTestBuilderWithActionResult<ActionResult>
|
15 | 15 | {
|
16 | 16 | /// <summary>
|
17 | 17 | /// Tests whether no response model is returned from the invoked action.
|
18 | 18 | /// </summary>
|
19 |
| - /// <returns>Base test builder with action.</returns> |
| 19 | + /// <returns>The same <see cref="IAndNotFoundTestBuilder"/>.</returns> |
20 | 20 | IAndNotFoundTestBuilder WithNoResponseModel();
|
21 | 21 |
|
22 | 22 | /// <summary>
|
23 |
| - /// Tests whether HTTP not found result has the same status code as the provided one. |
| 23 | + /// Tests whether <see cref="NotFoundObjectResult"/> has the same status code as the provided one. |
24 | 24 | /// </summary>
|
25 |
| - /// <param name="statusCode">Status code.</param> |
26 |
| - /// <returns>The same HTTP not found test builder.</returns> |
| 25 | + /// <param name="statusCode">Status code as integer.</param> |
| 26 | + /// <returns>The same <see cref="IAndNotFoundTestBuilder"/>.</returns> |
27 | 27 | IAndNotFoundTestBuilder WithStatusCode(int statusCode);
|
28 | 28 |
|
29 | 29 | /// <summary>
|
30 |
| - /// Tests whether HTTP not found has the same status code as the provided HttpStatusCode. |
| 30 | + /// Tests whether <see cref="NotFoundObjectResult"/> has the same status code as the provided <see cref="HttpStatusCode"/>. |
31 | 31 | /// </summary>
|
32 |
| - /// <param name="statusCode">HttpStatusCode enumeration.</param> |
33 |
| - /// <returns>The same HTTP not found test builder.</returns> |
| 32 | + /// <param name="statusCode"><see cref="HttpStatusCode"/> enumeration.</param> |
| 33 | + /// <returns>The same <see cref="IAndNotFoundTestBuilder"/>.</returns> |
34 | 34 | IAndNotFoundTestBuilder WithStatusCode(HttpStatusCode statusCode);
|
35 | 35 |
|
36 | 36 | /// <summary>
|
37 |
| - /// Tests whether HTTP not found result contains the content type provided as string. |
| 37 | + /// Tests whether <see cref="NotFoundObjectResult"/> contains the content type provided as string. |
38 | 38 | /// </summary>
|
39 | 39 | /// <param name="contentType">Content type as string.</param>
|
40 |
| - /// <returns>The same HTTP not found test builder.</returns> |
| 40 | + /// <returns>The same <see cref="IAndNotFoundTestBuilder"/>.</returns> |
41 | 41 | IAndNotFoundTestBuilder ContainingContentType(string contentType);
|
42 | 42 |
|
43 | 43 | /// <summary>
|
44 |
| - /// Tests whether HTTP not found result contains the content type provided as MediaTypeHeaderValue. |
| 44 | + /// Tests whether <see cref="NotFoundObjectResult"/> contains the content type provided as <see cref="MediaTypeHeaderValue"/>. |
45 | 45 | /// </summary>
|
46 |
| - /// <param name="contentType">Content type as MediaTypeHeaderValue.</param> |
47 |
| - /// <returns>The same HTTP not found test builder.</returns> |
| 46 | + /// <param name="contentType">Content type as <see cref="MediaTypeHeaderValue"/>.</param> |
| 47 | + /// <returns>The same <see cref="IAndNotFoundTestBuilder"/>.</returns> |
48 | 48 | IAndNotFoundTestBuilder ContainingContentType(MediaTypeHeaderValue contentType);
|
49 | 49 |
|
50 | 50 | /// <summary>
|
51 |
| - /// Tests whether HTTP not found result contains the same content types provided as enumerable of strings. |
| 51 | + /// Tests whether <see cref="NotFoundObjectResult"/> contains the same content types provided as enumerable of strings. |
52 | 52 | /// </summary>
|
53 | 53 | /// <param name="contentTypes">Content types as enumerable of strings.</param>
|
54 |
| - /// <returns>The same HTTP not found test builder.</returns> |
| 54 | + /// <returns>The same <see cref="IAndNotFoundTestBuilder"/>.</returns> |
55 | 55 | IAndNotFoundTestBuilder ContainingContentTypes(IEnumerable<string> contentTypes);
|
56 | 56 |
|
57 | 57 | /// <summary>
|
58 |
| - /// Tests whether HTTP not found result contains the same content types provided as string parameters. |
| 58 | + /// Tests whether <see cref="NotFoundObjectResult"/> contains the same content types provided as string parameters. |
59 | 59 | /// </summary>
|
60 | 60 | /// <param name="contentTypes">Content types as string parameters.</param>
|
61 |
| - /// <returns>The same HTTP not found test builder.</returns> |
| 61 | + /// <returns>The same <see cref="IAndNotFoundTestBuilder"/>.</returns> |
62 | 62 | IAndNotFoundTestBuilder ContainingContentTypes(params string[] contentTypes);
|
63 | 63 |
|
64 | 64 | /// <summary>
|
65 |
| - /// Tests whether HTTP not found result contains the same content types provided as enumerable of MediaTypeHeaderValue. |
| 65 | + /// Tests whether <see cref="NotFoundObjectResult"/> contains the same content types provided as enumerable of <see cref="MediaTypeHeaderValue"/>. |
66 | 66 | /// </summary>
|
67 | 67 | /// <param name="contentTypes">Content types as enumerable of MediaTypeHeaderValue.</param>
|
68 |
| - /// <returns>The same HTTP not found test builder.</returns> |
| 68 | + /// <returns>The same <see cref="IAndNotFoundTestBuilder"/>.</returns> |
69 | 69 | IAndNotFoundTestBuilder ContainingContentTypes(IEnumerable<MediaTypeHeaderValue> contentTypes);
|
70 | 70 |
|
71 | 71 | /// <summary>
|
72 |
| - /// Tests whether HTTP not found result contains the same content types provided as MediaTypeHeaderValue parameters. |
| 72 | + /// Tests whether <see cref="NotFoundObjectResult"/> contains the same content types provided as <see cref="MediaTypeHeaderValue"/> parameters. |
73 | 73 | /// </summary>
|
74 | 74 | /// <param name="contentTypes">Content types as MediaTypeHeaderValue parameters.</param>
|
75 |
| - /// <returns>The same HTTP not found test builder.</returns> |
| 75 | + /// <returns>The same <see cref="IAndNotFoundTestBuilder"/>.</returns> |
76 | 76 | IAndNotFoundTestBuilder ContainingContentTypes(params MediaTypeHeaderValue[] contentTypes);
|
77 | 77 |
|
78 | 78 | /// <summary>
|
79 |
| - /// Tests whether HTTP not found result contains the provided output formatter. |
| 79 | + /// Tests whether <see cref="NotFoundObjectResult"/> contains the provided <see cref="IOutputFormatter"/>. |
80 | 80 | /// </summary>
|
81 |
| - /// <param name="outputFormatter">Instance of IOutputFormatter.</param> |
82 |
| - /// <returns>The same HTTP not found test builder.</returns> |
| 81 | + /// <param name="outputFormatter">Instance of <see cref="IOutputFormatter"/>.</param> |
| 82 | + /// <returns>The same <see cref="IAndNotFoundTestBuilder"/>.</returns> |
83 | 83 | IAndNotFoundTestBuilder ContainingOutputFormatter(IOutputFormatter outputFormatter);
|
84 | 84 |
|
85 | 85 | /// <summary>
|
86 |
| - /// Tests whether HTTP not found result contains output formatter of the provided type. |
| 86 | + /// Tests whether <see cref="NotFoundObjectResult"/> contains <see cref="IOutputFormatter"/> of the provided type. |
87 | 87 | /// </summary>
|
88 |
| - /// <typeparam name="TOutputFormatter">Type of IOutputFormatter.</typeparam> |
89 |
| - /// <returns>The same HTTP not found test builder.</returns> |
| 88 | + /// <typeparam name="TOutputFormatter">Type of <see cref="IOutputFormatter"/>.</typeparam> |
| 89 | + /// <returns>The same <see cref="IAndNotFoundTestBuilder"/>.</returns> |
90 | 90 | IAndNotFoundTestBuilder ContainingOutputFormatterOfType<TOutputFormatter>()
|
91 | 91 | where TOutputFormatter : IOutputFormatter;
|
92 | 92 |
|
93 | 93 | /// <summary>
|
94 |
| - /// Tests whether HTTP not found result contains the provided output formatters. |
| 94 | + /// Tests whether <see cref="NotFoundObjectResult"/> contains the provided output formatters. |
95 | 95 | /// </summary>
|
96 |
| - /// <param name="outputFormatters">Enumerable of IOutputFormatter.</param> |
97 |
| - /// <returns>The same HTTP not found test builder.</returns> |
| 96 | + /// <param name="outputFormatters">Enumerable of <see cref="IOutputFormatter"/>.</param> |
| 97 | + /// <returns>The same <see cref="IAndNotFoundTestBuilder"/>.</returns> |
98 | 98 | IAndNotFoundTestBuilder ContainingOutputFormatters(IEnumerable<IOutputFormatter> outputFormatters);
|
99 | 99 |
|
100 | 100 | /// <summary>
|
101 |
| - /// Tests whether HTTP not found result contains the provided output formatters. |
| 101 | + /// Tests whether <see cref="NotFoundObjectResult"/> contains the provided output formatters. |
102 | 102 | /// </summary>
|
103 |
| - /// <param name="outputFormatters">Output formatter parameters.</param> |
104 |
| - /// <returns>The same HTTP not found test builder.</returns> |
| 103 | + /// <param name="outputFormatters"><see cref="IOutputFormatter"/> parameters.</param> |
| 104 | + /// <returns>The same <see cref="IAndNotFoundTestBuilder"/>.</returns> |
105 | 105 | IAndNotFoundTestBuilder ContainingOutputFormatters(params IOutputFormatter[] outputFormatters);
|
106 | 106 | }
|
107 | 107 | }
|
0 commit comments