Skip to content

Instantly share code, notes, and snippets.

@tuannguyenssu
Created August 15, 2019 15:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tuannguyenssu/5e1083d8f46ea078996cc32d538cec15 to your computer and use it in GitHub Desktop.
Save tuannguyenssu/5e1083d8f46ea078996cc32d538cec15 to your computer and use it in GitHub Desktop.
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