Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VP-2727: Fix error on adding same item with 0 price #433

Merged
merged 1 commit into from
Jun 8, 2020
Merged

Conversation

ilyawzrd
Copy link
Contributor

@ilyawzrd ilyawzrd commented Jun 5, 2020

@tatarincev tatarincev merged commit 752e328 into dev Jun 8, 2020
@tatarincev tatarincev deleted the fix/VP-2727 branch June 8, 2020 05:54
@@ -12,7 +12,7 @@ public class ChangeCartItemPriceValidator : AbstractValidator<ChangeCartItemPric
{
public ChangeCartItemPriceValidator(ShoppingCart cart)
{
RuleFor(x => x.NewPrice).GreaterThan(0);
RuleFor(x => x.NewPrice).GreaterThanOrEqualTo(0);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, You need to change the appropriated unit test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants