Renames the unprocessable content status to unprocessable entity

This commit is contained in:
BinaryAlley committed 2026-09-27 22:17:44 +03:00
1 parent 5aa21c0c0a
commit ffe79221fe
22 files changed
+31 -31

No files matched your search

@@ -95,7 +95,7 @@ public class ChangePasswordEndpointTests : IClassFixture<AuthenticatedLuminaApiF
HttpResponseMessage response = await _client.PostAsJsonAsync("/api/v1/auth/change-password", request);
// Assert
Assert.Equal(HttpStatusCode.UnprocessableContent, response.StatusCode);
Assert.Equal(HttpStatusCode.UnprocessableEntity, response.StatusCode);
string content = await response.Content.ReadAsStringAsync();
Dictionary<string, JsonElement>? problemDetails = JsonSerializer.Deserialize<Dictionary<string, JsonElement>>(content, _jsonOptions);
@@ -182,7 +182,7 @@ public class ChangePasswordEndpointTests : IClassFixture<AuthenticatedLuminaApiF
HttpResponseMessage response = await _client.PostAsJsonAsync("/api/v1/auth/change-password", request);
// Assert
Assert.Equal(HttpStatusCode.UnprocessableContent, response.StatusCode);
Assert.Equal(HttpStatusCode.UnprocessableEntity, response.StatusCode);
string content = await response.Content.ReadAsStringAsync();
Dictionary<string, JsonElement>? problemDetails = JsonSerializer.Deserialize<Dictionary<string, JsonElement>>(content, _jsonOptions);
@@ -184,7 +184,7 @@ public class RecoverPasswordEndpointTests : IClassFixture<AuthenticatedLuminaApi
HttpResponseMessage response = await _client.PostAsJsonAsync("/api/v1/auth/recover-password", request);
// Assert
Assert.Equal(HttpStatusCode.UnprocessableContent, response.StatusCode);
Assert.Equal(HttpStatusCode.UnprocessableEntity, response.StatusCode);
string content = await response.Content.ReadAsStringAsync();
Dictionary<string, JsonElement>? problemDetails = JsonSerializer.Deserialize<Dictionary<string, JsonElement>>(content, _jsonOptions);
@@ -219,7 +219,7 @@ public class RecoverPasswordEndpointTests : IClassFixture<AuthenticatedLuminaApi
HttpResponseMessage response = await _client.PostAsJsonAsync("/api/v1/auth/recover-password", request);
// Assert
Assert.Equal(HttpStatusCode.UnprocessableContent, response.StatusCode);
Assert.Equal(HttpStatusCode.UnprocessableEntity, response.StatusCode);
string content = await response.Content.ReadAsStringAsync();
Dictionary<string, JsonElement>? problemDetails = JsonSerializer.Deserialize<Dictionary<string, JsonElement>>(content, _jsonOptions);
@@ -156,7 +156,7 @@ public class RegisterEndpointTests : IClassFixture<AuthenticatedLuminaApiFactory
HttpResponseMessage response = await _client.PostAsJsonAsync("/api/v1/auth/register", request);
// Assert
Assert.Equal(HttpStatusCode.UnprocessableContent, response.StatusCode);
Assert.Equal(HttpStatusCode.UnprocessableEntity, response.StatusCode);
string content = await response.Content.ReadAsStringAsync();
Dictionary<string, JsonElement>? problemDetails = JsonSerializer.Deserialize<Dictionary<string, JsonElement>>(content, _jsonOptions);
@@ -177,7 +177,7 @@ public class RegisterEndpointTests : IClassFixture<AuthenticatedLuminaApiFactory
HttpResponseMessage response = await _client.PostAsJsonAsync("/api/v1/auth/register", request);
// Assert
Assert.Equal(HttpStatusCode.UnprocessableContent, response.StatusCode);
Assert.Equal(HttpStatusCode.UnprocessableEntity, response.StatusCode);
string content = await response.Content.ReadAsStringAsync();
Dictionary<string, JsonElement>? problemDetails = JsonSerializer.Deserialize<Dictionary<string, JsonElement>>(content, _jsonOptions);