forked from answerdigital/AnswerKing-CS
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fac8d53
commit 6eb57e1
Showing
11 changed files
with
84 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
namespace Answer.King.IntegrationTests.POCO; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
internal class ErrorResponse | ||
{ | ||
public required object Errors { get; set; } | ||
public required int Status { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 9 additions & 6 deletions
15
...wer.King.IntegrationTests/Tests/__snapshots__/AnswerKingPostOrder.FailedOrder_NoBody.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,11 @@ | ||
{ | ||
"Type": "https://tools.ietf.org/html/rfc7231#section-6.5.1", | ||
"Title": "One or more validation errors occurred.", | ||
"Status": 400, | ||
"Detail": null, | ||
"Instance": null, | ||
"Extensions": {} | ||
"Errors": { | ||
"": [ | ||
"A non-empty request body is required." | ||
], | ||
"createOrder": [ | ||
"The createOrder field is required." | ||
] | ||
}, | ||
"Status": 400 | ||
} |
12 changes: 6 additions & 6 deletions
12
...onTests/Tests/__snapshots__/AnswerKingPostOrder.FailedOrders_Fail_Invalid_Product_Id.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
{ | ||
"Type": "https://tools.ietf.org/html/rfc7231#section-6.5.1", | ||
"Title": "One or more validation errors occurred.", | ||
"Status": 400, | ||
"Detail": null, | ||
"Instance": null, | ||
"Extensions": {} | ||
"Errors": { | ||
"lineItems[0].productId": [ | ||
"'product Id' must not be empty." | ||
] | ||
}, | ||
"Status": 400 | ||
} |
12 changes: 6 additions & 6 deletions
12
...ionTests/Tests/__snapshots__/AnswerKingPostOrder.FailedOrders_Fail_Negative_Quantity.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
{ | ||
"Type": "https://tools.ietf.org/html/rfc7231#section-6.5.1", | ||
"Title": "One or more validation errors occurred.", | ||
"Status": 400, | ||
"Detail": null, | ||
"Instance": null, | ||
"Extensions": {} | ||
"Errors": { | ||
"lineItems[0].quantity": [ | ||
"'quantity' must be greater than or equal to '0'." | ||
] | ||
}, | ||
"Status": 400 | ||
} |
12 changes: 6 additions & 6 deletions
12
...ationTests/Tests/__snapshots__/AnswerKingPostOrder.FailedOrders_Fail_No_Product_Line.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
{ | ||
"Type": "https://tools.ietf.org/html/rfc7231#section-6.5.1", | ||
"Title": "One or more validation errors occurred.", | ||
"Status": 400, | ||
"Detail": null, | ||
"Instance": null, | ||
"Extensions": {} | ||
"Errors": { | ||
"lineItems[0].productId": [ | ||
"'product Id' must not be empty." | ||
] | ||
}, | ||
"Status": 400 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters