From ab426979d093f1d2f810c76b1cd9f2c91a0ae571 Mon Sep 17 00:00:00 2001 From: Artemy <109195690+stalcker2288969@users.noreply.github.com> Date: Mon, 30 Jun 2025 19:04:35 +0700 Subject: [PATCH] Update AuthControllerTests.cs --- .../IntegrationTests/Controllers/AuthControllerTests.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Govor.API.Tests/IntegrationTests/Controllers/AuthControllerTests.cs b/Govor.API.Tests/IntegrationTests/Controllers/AuthControllerTests.cs index 82808d2..010dd68 100644 --- a/Govor.API.Tests/IntegrationTests/Controllers/AuthControllerTests.cs +++ b/Govor.API.Tests/IntegrationTests/Controllers/AuthControllerTests.cs @@ -86,8 +86,8 @@ public class AuthControllerTests var result = await _controller.Register(request); // Assert - Assert.That(result, Is.InstanceOf()); - var notFoundObjectResult = result as NotFoundObjectResult; + Assert.That(result, Is.InstanceOf()); + var notFoundObjectResult = result as BadRequestObjectResult; Assert.That(notFoundObjectResult.Value, Is.EqualTo("Invite link invalid.")); }