mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-10-15 18:14:44 +00:00
15 lines
422 B
C#
15 lines
422 B
C#
using FluentValidation;
|
|
|
|
namespace Features.Breweries.Commands.UpdateBrewery;
|
|
|
|
/// <summary>Validates <see cref="UpdateBreweryCommand" />.</summary>
|
|
public class UpdateBreweryValidator : AbstractValidator<UpdateBreweryCommand>
|
|
{
|
|
public UpdateBreweryValidator()
|
|
{
|
|
RuleFor(x => x.Timer)
|
|
.NotEmpty()
|
|
.WithMessage("Timer is required to detect conflicting concurrent updates.");
|
|
}
|
|
}
|