Browse Source

Fix UTs

pull/289/head 5.4.0
gdlcf88 1 year ago
parent
commit
c6d04f2c89
  1. 6
      plugins/Coupons/test/EasyAbp.EShop.Orders.Plugins.Coupons.Tests/Orders/OrdersAppServiceTests.cs

6
plugins/Coupons/test/EasyAbp.EShop.Orders.Plugins.Coupons.Tests/Orders/OrdersAppServiceTests.cs

@ -96,7 +96,6 @@ namespace EasyAbp.EShop.Plugins.Coupons.Coupons
await Should.ThrowAsync<OrderDoesNotMeetCouponUsageConditionException>(() => await Should.ThrowAsync<OrderDoesNotMeetCouponUsageConditionException>(() =>
orderGenerator.GenerateAsync(Guid.NewGuid(), createOrderInfoModel, dic, orderGenerator.GenerateAsync(Guid.NewGuid(), createOrderInfoModel, dic,
new Dictionary<Guid, DateTime>())); new Dictionary<Guid, DateTime>()));
return;
} }
else else
{ {
@ -107,6 +106,11 @@ namespace EasyAbp.EShop.Plugins.Coupons.Coupons
//assert //assert
if (throws)
{
return;
}
var orderLine = order.OrderLines[0]; var orderLine = order.OrderLines[0];
var orderLine2ExpectedPrice = 1 * prodoctSku.Price - discountAmount; var orderLine2ExpectedPrice = 1 * prodoctSku.Price - discountAmount;

Loading…
Cancel
Save