This repository has been archived on 2023-02-02. You can view files and clone it, but cannot push or open issues or pull requests.
2023-01-15 00:19:42 +00:00
|
|
|
using FluentValidation;
|
|
|
|
|
2023-01-16 19:45:59 +00:00
|
|
|
namespace MfGames.Nitride.Temporal.Validators;
|
2023-01-15 00:19:42 +00:00
|
|
|
|
|
|
|
public class CreateDateIndexesValidator : AbstractValidator<CreateDateIndexes>
|
|
|
|
{
|
|
|
|
public CreateDateIndexesValidator()
|
|
|
|
{
|
2023-01-21 07:52:52 +00:00
|
|
|
this.RuleFor(a => a.TimeService)
|
2023-01-15 00:19:42 +00:00
|
|
|
.NotNull();
|
|
|
|
|
|
|
|
this.RuleFor(a => a.CreateIndex)
|
|
|
|
.NotNull();
|
|
|
|
|
|
|
|
this.RuleFor(a => a.Formats)
|
|
|
|
.NotNull();
|
|
|
|
}
|
|
|
|
}
|