|
|
@ -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; |
|
|
|