16 lines
463 B
C#
16 lines
463 B
C#
using FluentValidation;
|
|
using Gameboard.ShogiUI.Sockets.ServiceModels.Socket.Messages;
|
|
using Gameboard.ShogiUI.Sockets.ServiceModels.Socket.Types;
|
|
|
|
namespace Gameboard.ShogiUI.Sockets.Services.RequestValidators
|
|
{
|
|
public class CreateGameRequestValidator : AbstractValidator<CreateGameRequest>
|
|
{
|
|
public CreateGameRequestValidator()
|
|
{
|
|
RuleFor(_ => _.Action).Equal(ClientAction.CreateGame);
|
|
RuleFor(_ => _.GameName).NotEmpty();
|
|
}
|
|
}
|
|
}
|