Created
August 15, 2019 15:30
-
-
Save tuannguyenssu/5e1083d8f46ea078996cc32d538cec15 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using FluentValidation; | |
namespace CQRSTest.Application.Customers.Queries.GetCustomerDetail | |
{ | |
public class GetCustomerDetailQueryValidator : AbstractValidator<GetCustomerDetailQuery> | |
{ | |
public GetCustomerDetailQueryValidator() | |
{ | |
RuleFor(v => v.Id).GreaterThan(0); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment