19 lines
400 B
C#
19 lines
400 B
C#
using FluentValidation;
|
|
|
|
namespace MfGames.Nitride.Temporal.Validators;
|
|
|
|
public class CreateDateIndexesValidator : AbstractValidator<CreateDateIndexes>
|
|
{
|
|
public CreateDateIndexesValidator()
|
|
{
|
|
this.RuleFor(a => a.Timekeeper)
|
|
.NotNull();
|
|
|
|
this.RuleFor(a => a.CreateIndex)
|
|
.NotNull();
|
|
|
|
this.RuleFor(a => a.Formats)
|
|
.NotNull();
|
|
}
|
|
}
|