316 references to Status200OK
InMemory.FunctionalTests (2)
Microsoft.AspNetCore.Authentication.Negotiate.Test (10)
Microsoft.AspNetCore.Components.Server (1)
Microsoft.AspNetCore.Components.Server.Tests (3)
Microsoft.AspNetCore.Diagnostics.HealthChecks (2)
Microsoft.AspNetCore.Diagnostics.HealthChecks.Tests (4)
Microsoft.AspNetCore.Grpc.JsonTranscoding (2)
Microsoft.AspNetCore.Hosting.Tests (6)
HostingMetricsTests.cs (6)
38context1.HttpContext.Response.StatusCode = StatusCodes.Status200OK;
45m => AssertRequestDuration(m, "1.1", StatusCodes.Status200OK));
59m => AssertRequestDuration(m, "1.1", StatusCodes.Status200OK),
75m => AssertRequestDuration(m, "1.1", StatusCodes.Status200OK),
88m => AssertRequestDuration(m, "1.1", StatusCodes.Status200OK),
142context1.HttpContext.Response.StatusCode = StatusCodes.Status200OK;
Microsoft.AspNetCore.Http.Connections (1)
Microsoft.AspNetCore.Http.Connections.Tests (15)
HttpConnectionDispatcherTests.cs (15)
791Assert.Equal(StatusCodes.Status200OK, context.Response.StatusCode);
1017Assert.Equal(StatusCodes.Status200OK, context.Response.StatusCode);
1049Assert.Equal(StatusCodes.Status200OK, context.Response.StatusCode);
1076Assert.Equal(StatusCodes.Status200OK, context.Response.StatusCode);
1112Assert.Equal(StatusCodes.Status200OK, context.Response.StatusCode);
1148Assert.Equal(StatusCodes.Status200OK, context.Response.StatusCode);
1201Assert.Equal(StatusCodes.Status200OK, context.Response.StatusCode);
1665Assert.Equal(StatusCodes.Status200OK, context.Response.StatusCode);
1697Assert.Equal(StatusCodes.Status200OK, context.Response.StatusCode);
1726Assert.Equal(StatusCodes.Status200OK, context.Response.StatusCode);
1783Assert.Equal(StatusCodes.Status200OK, context2.Response.StatusCode);
1859Assert.Equal(StatusCodes.Status200OK, context.Response.StatusCode);
1871Assert.Equal(StatusCodes.Status200OK, context.Response.StatusCode);
1911Assert.Equal(StatusCodes.Status200OK, context.Response.StatusCode);
1923Assert.Equal(StatusCodes.Status200OK, context.Response.StatusCode);
Microsoft.AspNetCore.Http.Extensions.Tests (12)
Microsoft.AspNetCore.Http.Results (12)
Microsoft.AspNetCore.Http.Results.Tests (30)
Microsoft.AspNetCore.Http.Tests (1)
Microsoft.AspNetCore.Mvc.ApiExplorer (4)
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (4)
Microsoft.AspNetCore.Mvc.Core (44)
ControllerBase.cs (34)
304/// Creates an <see cref="OkResult"/> object that produces an empty <see cref="StatusCodes.Status200OK"/> response.
312/// Creates an <see cref="OkObjectResult"/> object that produces a <see cref="StatusCodes.Status200OK"/> response.
1065/// Returns a file with the specified <paramref name="fileContents" /> as content (<see cref="StatusCodes.Status200OK"/>),
1078/// Returns a file with the specified <paramref name="fileContents" /> as content (<see cref="StatusCodes.Status200OK"/>),
1092/// Returns a file with the specified <paramref name="fileContents" /> as content (<see cref="StatusCodes.Status200OK"/>), the
1106/// Returns a file with the specified <paramref name="fileContents" /> as content (<see cref="StatusCodes.Status200OK"/>), the
1125/// Returns a file with the specified <paramref name="fileContents" /> as content (<see cref="StatusCodes.Status200OK"/>),
1146/// Returns a file with the specified <paramref name="fileContents" /> as content (<see cref="StatusCodes.Status200OK"/>),
1169/// Returns a file with the specified <paramref name="fileContents" /> as content (<see cref="StatusCodes.Status200OK"/>), the
1192/// Returns a file with the specified <paramref name="fileContents" /> as content (<see cref="StatusCodes.Status200OK"/>), the
1217/// Returns a file in the specified <paramref name="fileStream" /> (<see cref="StatusCodes.Status200OK"/>), with the
1233/// Returns a file in the specified <paramref name="fileStream" /> (<see cref="StatusCodes.Status200OK"/>), with the
1250/// Returns a file in the specified <paramref name="fileStream" /> (<see cref="StatusCodes.Status200OK"/>) with the
1268/// Returns a file in the specified <paramref name="fileStream" /> (<see cref="StatusCodes.Status200OK"/>) with the
1291/// Returns a file in the specified <paramref name="fileStream" /> (<see cref="StatusCodes.Status200OK"/>),
1315/// Returns a file in the specified <paramref name="fileStream" /> (<see cref="StatusCodes.Status200OK"/>),
1341/// Returns a file in the specified <paramref name="fileStream" /> (<see cref="StatusCodes.Status200OK"/>), the
1367/// Returns a file in the specified <paramref name="fileStream" /> (<see cref="StatusCodes.Status200OK"/>), the
1395/// Returns the file specified by <paramref name="virtualPath" /> (<see cref="StatusCodes.Status200OK"/>) with the
1408/// Returns the file specified by <paramref name="virtualPath" /> (<see cref="StatusCodes.Status200OK"/>) with the
1422/// Returns the file specified by <paramref name="virtualPath" /> (<see cref="StatusCodes.Status200OK"/>) with the
1437/// Returns the file specified by <paramref name="virtualPath" /> (<see cref="StatusCodes.Status200OK"/>) with the
1457/// Returns the file specified by <paramref name="virtualPath" /> (<see cref="StatusCodes.Status200OK"/>), and the
1478/// Returns the file specified by <paramref name="virtualPath" /> (<see cref="StatusCodes.Status200OK"/>), and the
1501/// Returns the file specified by <paramref name="virtualPath" /> (<see cref="StatusCodes.Status200OK"/>), the
1524/// Returns the file specified by <paramref name="virtualPath" /> (<see cref="StatusCodes.Status200OK"/>), the
1549/// Returns the file specified by <paramref name="physicalPath" /> (<see cref="StatusCodes.Status200OK"/>) with the
1562/// Returns the file specified by <paramref name="physicalPath" /> (<see cref="StatusCodes.Status200OK"/>) with the
1576/// Returns the file specified by <paramref name="physicalPath" /> (<see cref="StatusCodes.Status200OK"/>) with the
1594/// Returns the file specified by <paramref name="physicalPath" /> (<see cref="StatusCodes.Status200OK"/>) with the
1618/// Returns the file specified by <paramref name="physicalPath" /> (<see cref="StatusCodes.Status200OK"/>), and
1639/// Returns the file specified by <paramref name="physicalPath" /> (<see cref="StatusCodes.Status200OK"/>), and
1662/// Returns the file specified by <paramref name="physicalPath" /> (<see cref="StatusCodes.Status200OK"/>), the
1685/// Returns the file specified by <paramref name="physicalPath" /> (<see cref="StatusCodes.Status200OK"/>), the
Microsoft.AspNetCore.Mvc.Core.Test (25)
ProducesResponseTypeAttributeTests.cs (6)
17var producesContentAttribute = new ProducesResponseTypeAttribute(typeof(void), StatusCodes.Status200OK, "application/json", "text/json;charset=utf-8");
42() => new ProducesResponseTypeAttribute(typeof(void), StatusCodes.Status200OK, contentTypes[0], contentTypes.Skip(1).ToArray()));
53var producesResponseTypeAttribute = new ProducesResponseTypeAttribute(typeof(Person), StatusCodes.Status200OK);
64var producesResponseTypeAttribute = new ProducesResponseTypeAttribute(typeof(Person), StatusCodes.Status200OK);
74var producesResponseTypeAttribute = new ProducesResponseTypeAttribute(typeof(Person), StatusCodes.Status200OK)
87var producesResponseTypeAttribute = new ProducesResponseTypeAttribute(typeof(Person), StatusCodes.Status200OK);
Microsoft.AspNetCore.Mvc.FunctionalTests (2)
Microsoft.AspNetCore.Mvc.RazorPages (24)
Microsoft.AspNetCore.OpenApi (7)
Microsoft.AspNetCore.OpenApi.Tests (20)
Services\OpenApiDocumentService\OpenApiDocumentServiceTests.Responses.cs (8)
72.WithMetadata(new ProducesResponseTypeMetadata(StatusCodes.Status200OK))
74.WithMetadata(new ProducesResponseTypeMetadata(StatusCodes.Status200OK, typeof(string), ["text/plain"]));
97.WithMetadata(new ProducesResponseTypeMetadata(StatusCodes.Status200OK, typeof(Todo), ["application/json"]))
99.WithMetadata(new ProducesResponseTypeMetadata(StatusCodes.Status200OK, typeof(TodoWithDueDate), ["application/json"]));
122.WithMetadata(new ProducesResponseTypeMetadata(StatusCodes.Status200OK, typeof(Todo), ["application/json", "application/xml"]));
151.WithMetadata(new ProducesResponseTypeMetadata(StatusCodes.Status200OK, typeof(TodoWithDueDate), ["application/json"]))
152.WithMetadata(new ProducesResponseTypeMetadata(StatusCodes.Status200OK, typeof(Todo), ["application/xml"]));
256.WithMetadata(new ProducesResponseTypeMetadata(StatusCodes.Status200OK, typeof(Todo), ["application/json"]));
Services\OpenApiGeneratorTests.cs (6)
565new ProducesResponseTypeMetadata(StatusCodes.Status200OK, typeof(InferredJsonClass), new[] { "application/json" }),
581new ProducesResponseTypeMetadata(StatusCodes.Status200OK, typeof(InferredJsonClass), new[] { "application/json" }),
595new ProducesResponseTypeMetadata(StatusCodes.Status200OK, typeof(InferredJsonClass), new[] { "application/json" }),
638new ProducesResponseTypeMetadata(StatusCodes.Status200OK, typeof(InferredJsonClass), new[] { "application/json" }),
907new ProducesResponseTypeMetadata(StatusCodes.Status200OK),
909new ProducesResponseTypeMetadata(StatusCodes.Status200OK, typeof(InferredJsonClass), new[] { "application/json" }),
Microsoft.AspNetCore.OutputCaching (1)
Microsoft.AspNetCore.OutputCaching.Microbenchmarks (3)
Microsoft.AspNetCore.OutputCaching.Tests (23)
OutputCacheMiddlewareTests.cs (18)
77using (var entry = new OutputCacheEntry(DateTimeOffset.UtcNow, StatusCodes.Status200OK))
107using (var entry = new OutputCacheEntry(DateTimeOffset.UtcNow, StatusCodes.Status200OK)
136using (var entry = new OutputCacheEntry(DateTimeOffset.UtcNow, StatusCodes.Status200OK))
162using var entry = new OutputCacheEntry(DateTimeOffset.UtcNow, StatusCodes.Status200OK);
176using var entry = new OutputCacheEntry(DateTimeOffset.UtcNow, StatusCodes.Status200OK);
214using var entry = new OutputCacheEntry(DateTimeOffset.UtcNow, StatusCodes.Status200OK);
256using var entry = new OutputCacheEntry(DateTimeOffset.UtcNow, StatusCodes.Status200OK);
277using var entry = new OutputCacheEntry(DateTimeOffset.UtcNow, StatusCodes.Status200OK);
295using var entry = new OutputCacheEntry(DateTimeOffset.UtcNow, StatusCodes.Status200OK);
324using var entry = new OutputCacheEntry(DateTimeOffset.UtcNow, StatusCodes.Status200OK)
341using var entry = new OutputCacheEntry(DateTimeOffset.UtcNow, StatusCodes.Status200OK);
356using var entry = new OutputCacheEntry(DateTimeOffset.UtcNow, StatusCodes.Status200OK);
615using var entry = new OutputCacheEntry(DateTimeOffset.UtcNow, StatusCodes.Status200OK);
644using var entry = new OutputCacheEntry(DateTimeOffset.UtcNow, StatusCodes.Status200OK);
677using var entry = new OutputCacheEntry(DateTimeOffset.UtcNow, StatusCodes.Status200OK);
702using var entry = new OutputCacheEntry(DateTimeOffset.UtcNow, StatusCodes.Status200OK);
774using var entry = new OutputCacheEntry(DateTimeOffset.UtcNow, StatusCodes.Status200OK);
978using var entry = new OutputCacheEntry(DateTimeOffset.UtcNow, StatusCodes.Status200OK);
Microsoft.AspNetCore.RateLimiting.Tests (5)
Microsoft.AspNetCore.ResponseCaching (1)
Microsoft.AspNetCore.ResponseCaching.Tests (7)
Microsoft.AspNetCore.Routing (2)
Microsoft.AspNetCore.Routing.Tests (1)
Microsoft.AspNetCore.Server.HttpSys (1)
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (1)
Microsoft.AspNetCore.Server.Kestrel.Core (6)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (3)
Microsoft.AspNetCore.StaticAssets (6)
Microsoft.AspNetCore.StaticFiles (4)
Microsoft.AspNetCore.StaticFiles.Tests (1)
Microsoft.AspNetCore.WebSockets.Tests (1)
Mvc.Api.Analyzers.Test (9)
Negotiate.Client (9)
Controllers\AuthTestController.cs (9)
37if (HasWrongStatusCode(StatusCodes.Status200OK, result.StatusCode, body, out var actionResult)
86if (HasWrongStatusCode(StatusCodes.Status200OK, result.StatusCode, body, out var actionResult)
109if (HasWrongStatusCode(StatusCodes.Status200OK, result.StatusCode, body, out var actionResult)
120if (HasWrongStatusCode(StatusCodes.Status200OK, result.StatusCode, body, out actionResult)
142if (HasWrongStatusCode(StatusCodes.Status200OK, result.StatusCode, body, out var actionResult)
153if (HasWrongStatusCode(StatusCodes.Status200OK, result.StatusCode, body, out actionResult)
175if (HasWrongStatusCode(StatusCodes.Status200OK, result.StatusCode, body, out var actionResult)
186if (HasWrongStatusCode(StatusCodes.Status200OK, result.StatusCode, body, out actionResult)
232if (HasWrongStatusCode(StatusCodes.Status200OK, result.StatusCode, body, out var actionResult)
Sockets.FunctionalTests (1)