mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 14:11:10 +00:00
eliminates region sections
This commit is contained in:
1 parent
705c02b90d
commit
405fc1ff9a
370 files changed
+47
-1618
No files matched your search
-6
@@ -21,13 +21,10 @@ namespace Lumina.Presentation.Api.UnitTests.Core.Controllers.Common;
|
||||
[ExcludeFromCodeCoverage]
|
||||
public class ApiControllerTests
|
||||
{
|
||||
#region ================================================================== FIELD MEMBERS ================================================================================
|
||||
private readonly ApiControllerFixture _sut;
|
||||
private readonly HttpContext _mockHttpContext;
|
||||
private readonly ProblemDetailsFactory _mockProblemDetailsFactory;
|
||||
#endregion
|
||||
|
||||
#region ====================================================================== CTOR =====================================================================================
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="ApiControllerTests"/> class.
|
||||
/// </summary>
|
||||
@@ -42,9 +39,7 @@ public class ApiControllerTests
|
||||
};
|
||||
_sut.ProblemDetailsFactory = _mockProblemDetailsFactory;
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region ===================================================================== METHODS ===================================================================================
|
||||
[Fact]
|
||||
public void Problem_WhenCalledWithNoErrors_ShouldReturnGenericProblem()
|
||||
{
|
||||
@@ -280,5 +275,4 @@ public class ApiControllerTests
|
||||
validationProblem.Errors["Code1"].Should().Contain("Description1");
|
||||
validationProblem.Errors["Code2"].Should().Contain("Description2");
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
-2
@@ -14,7 +14,6 @@ namespace Lumina.Presentation.Api.UnitTests.Core.Controllers.Common.Fixtures;
|
||||
[ExcludeFromCodeCoverage]
|
||||
public class ApiControllerFixture : ApiController
|
||||
{
|
||||
#region ===================================================================== METHODS ===================================================================================
|
||||
/// <summary>
|
||||
/// Returns a standardized error response using the <see cref="ProblemDetails"/> format.
|
||||
/// </summary>
|
||||
@@ -34,5 +33,4 @@ public class ApiControllerFixture : ApiController
|
||||
{
|
||||
return ValidationProblem(errors);
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
Reference in new issue
Block a user