-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into jflaga/functional-test-for-create-order-draf…
…t-happy-path # Conflicts: # Directory.Packages.props # tests/Ordering.FunctionalTests/OrderingApiTests.cs
- Loading branch information
Showing
56 changed files
with
1,045 additions
and
418 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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"sdk": { | ||
"version": "8.0.100", | ||
"rollForward": "latestPatch", | ||
"rollForward": "major", | ||
"allowPrerelease": true | ||
} | ||
} |
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
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 |
---|---|---|
@@ -1,7 +1,4 @@ | ||
namespace eShop.Ordering.API.Application.Commands; | ||
|
||
public class CancelOrderCommand(int orderNumber) : IRequest<bool> | ||
{ | ||
[DataMember] | ||
public int OrderNumber { get; set; } = orderNumber; | ||
} | ||
public record CancelOrderCommand(int OrderNumber) : IRequest<bool>; | ||
|
13 changes: 1 addition & 12 deletions
13
src/Ordering.API/Application/Commands/CreateOrderDraftCommand.cs
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,15 +1,4 @@ | ||
namespace eShop.Ordering.API.Application.Commands; | ||
using eShop.Ordering.API.Application.Models; | ||
|
||
public class CreateOrderDraftCommand : IRequest<OrderDraftDTO> | ||
{ | ||
public string BuyerId { get; private set; } | ||
|
||
public IEnumerable<BasketItem> Items { get; private set; } | ||
|
||
public CreateOrderDraftCommand(string buyerId, IEnumerable<BasketItem> items) | ||
{ | ||
BuyerId = buyerId; | ||
Items = items; | ||
} | ||
} | ||
public record CreateOrderDraftCommand(string BuyerId, IEnumerable<BasketItem> Items) : IRequest<OrderDraftDTO>; |
12 changes: 1 addition & 11 deletions
12
src/Ordering.API/Application/Commands/SetAwaitingValidationOrderStatusCommand.cs
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,13 +1,3 @@ | ||
namespace eShop.Ordering.API.Application.Commands; | ||
|
||
public class SetAwaitingValidationOrderStatusCommand : IRequest<bool> | ||
{ | ||
|
||
[DataMember] | ||
public int OrderNumber { get; private set; } | ||
|
||
public SetAwaitingValidationOrderStatusCommand(int orderNumber) | ||
{ | ||
OrderNumber = orderNumber; | ||
} | ||
} | ||
public record SetAwaitingValidationOrderStatusCommand(int OrderNumber) : IRequest<bool>; |
12 changes: 1 addition & 11 deletions
12
src/Ordering.API/Application/Commands/SetPaidOrderStatusCommand.cs
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,13 +1,3 @@ | ||
namespace eShop.Ordering.API.Application.Commands; | ||
|
||
public class SetPaidOrderStatusCommand : IRequest<bool> | ||
{ | ||
|
||
[DataMember] | ||
public int OrderNumber { get; private set; } | ||
|
||
public SetPaidOrderStatusCommand(int orderNumber) | ||
{ | ||
OrderNumber = orderNumber; | ||
} | ||
} | ||
public record SetPaidOrderStatusCommand(int OrderNumber) : IRequest<bool>; |
12 changes: 1 addition & 11 deletions
12
src/Ordering.API/Application/Commands/SetStockConfirmedOrderStatusCommand.cs
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,13 +1,3 @@ | ||
namespace eShop.Ordering.API.Application.Commands; | ||
|
||
public class SetStockConfirmedOrderStatusCommand : IRequest<bool> | ||
{ | ||
|
||
[DataMember] | ||
public int OrderNumber { get; private set; } | ||
|
||
public SetStockConfirmedOrderStatusCommand(int orderNumber) | ||
{ | ||
OrderNumber = orderNumber; | ||
} | ||
} | ||
public record SetStockConfirmedOrderStatusCommand(int OrderNumber) : IRequest<bool>; |
16 changes: 1 addition & 15 deletions
16
src/Ordering.API/Application/Commands/SetStockRejectedOrderStatusCommand.cs
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,17 +1,3 @@ | ||
namespace eShop.Ordering.API.Application.Commands; | ||
|
||
public class SetStockRejectedOrderStatusCommand : IRequest<bool> | ||
{ | ||
|
||
[DataMember] | ||
public int OrderNumber { get; private set; } | ||
|
||
[DataMember] | ||
public List<int> OrderStockItems { get; private set; } | ||
|
||
public SetStockRejectedOrderStatusCommand(int orderNumber, List<int> orderStockItems) | ||
{ | ||
OrderNumber = orderNumber; | ||
OrderStockItems = orderStockItems; | ||
} | ||
} | ||
public record SetStockRejectedOrderStatusCommand(int OrderNumber, List<int> OrderStockItems) : IRequest<bool>; |
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,13 +1,3 @@ | ||
namespace eShop.Ordering.API.Application.Commands; | ||
|
||
public class ShipOrderCommand : IRequest<bool> | ||
{ | ||
|
||
[DataMember] | ||
public int OrderNumber { get; private set; } | ||
|
||
public ShipOrderCommand(int orderNumber) | ||
{ | ||
OrderNumber = orderNumber; | ||
} | ||
} | ||
public record ShipOrderCommand(int OrderNumber) : IRequest<bool>; |
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
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
Oops, something went wrong.