Skip to content

Commit

Permalink
VP-2727: Fix test for ValidateChangePriceItem after last changes (#435)
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyawzrd authored Jun 8, 2020
1 parent 53a57ba commit e19db09
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ public async Task ValidateChangePriceItem_RuleSetDefault_Invalid()
var newItemPrice = new ChangeCartItemPrice
{
LineItemId = null,
NewPrice = 0
NewPrice = -1
};

//Act
Expand All @@ -208,7 +208,7 @@ public async Task ValidateChangePriceItem_RuleSetDefault_Invalid()
Assert.NotEmpty(result.Errors);
Assert.Equal(3, result.Errors.Count);

Assert.Collection(result.Errors, x => { Assert.Equal(nameof(newItemPrice.NewPrice), x.PropertyName); Assert.Equal(nameof(GreaterThanValidator), x.ErrorCode); }
Assert.Collection(result.Errors, x => { Assert.Equal(nameof(newItemPrice.NewPrice), x.PropertyName); Assert.Equal(nameof(GreaterThanOrEqualValidator), x.ErrorCode); }
, x => { Assert.Equal(nameof(newItemPrice.LineItemId), x.PropertyName); Assert.Equal(nameof(NotNullValidator), x.ErrorCode); }
, x => { Assert.Equal(nameof(newItemPrice.LineItemId), x.PropertyName); Assert.Equal(nameof(NotEmptyValidator), x.ErrorCode); }
);
Expand Down

0 comments on commit e19db09

Please sign in to comment.