mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 13:11:10 +00:00
Refactors the test fixtures and their consumers to compose other fixtures instead of instantiating models inline
This commit is contained in:
1 parent
0abda472c6
commit
3aadd6de84
157 files changed
+1312
-597
No files matched your search
+1
-5
@@ -256,11 +256,7 @@ public class ExceptionHandlingMiddlewareTests
|
||||
{
|
||||
// Arrange
|
||||
DefaultHttpContext httpContext = CreateHttpContext(isApiRequest: true);
|
||||
ProblemDetailsDto problemDetails = new()
|
||||
{
|
||||
Title = "General.Failure",
|
||||
Status = 400
|
||||
};
|
||||
ProblemDetailsDto problemDetails = _problemDetailsDtoFixture.Create(title: "General.Failure", status: 400, includeType: false, includeDetail: false);
|
||||
_nextDelegate = _ => throw new ApiException(problemDetails, HttpStatusCode.BadRequest);
|
||||
|
||||
// Act
|
||||
|
||||
Reference in new issue
Block a user