Skip to content

Commit

Permalink
Fix UTs
Browse files Browse the repository at this point in the history
  • Loading branch information
gdlcf88 committed Oct 27, 2024
1 parent b791b76 commit c6d04f2
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ await WithUnitOfWorkAsync(async () =>
await Should.ThrowAsync<OrderDoesNotMeetCouponUsageConditionException>(() =>
orderGenerator.GenerateAsync(Guid.NewGuid(), createOrderInfoModel, dic,
new Dictionary<Guid, DateTime>()));
return;
}
else
{
Expand All @@ -107,6 +106,11 @@ await Should.ThrowAsync<OrderDoesNotMeetCouponUsageConditionException>(() =>

//assert

if (throws)
{
return;
}

var orderLine = order.OrderLines[0];

var orderLine2ExpectedPrice = 1 * prodoctSku.Price - discountAmount;
Expand Down

0 comments on commit c6d04f2

Please sign in to comment.