Skip to content

Commit

Permalink
file structure 3
Browse files Browse the repository at this point in the history
  • Loading branch information
RuaridhAnswer committed Dec 11, 2023
1 parent c6b1257 commit c84c683
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 0 additions & 2 deletions tests/Answer.King.IntegrationTests/TestData/DataHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@ internal class DataHelper
{
public static Order GetOrderData(string name)
{
#pragma warning disable CA2201 // Do not raise reserved exception types
var orderData = OrdersData.AllOrders.FirstOrDefault(x => x.Name.Contains(name)) ?? throw new Exception("Order data cannot be found");
#pragma warning restore CA2201 // Do not raise reserved exception types
{
return orderData.Order;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public class AnswerKingPostOrder : BaseTestClass

{
[Test]
public void GetAllOrdersRestAssured()
public void GetAllOrders()
{
Given(this.Client)
.When()
Expand Down Expand Up @@ -79,7 +79,7 @@ public void FailedOrders(string name)
}

[Test]
public void BlankOrderNoBodyRestAssured()
public void FailedOrder_NoBody()
{
var response = (ProblemDetails)Given(this.Client)
.When()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
{
"Type": "https://tools.ietf.org/html/rfc7231#section-6.5.1",
"Title": "One or more validation errors occurred.",
"Status": 400,
Expand Down

0 comments on commit c84c683

Please sign in to comment.