public bool Validate(CreatePlayerMessages.Request request)
        {
            var valid = true;

            if (String.IsNullOrWhiteSpace(request.Username))
            {
                valid = false;
            }

            return(valid);
        }
        public CreatePlayerMessages.Response Handle(CreatePlayerMessages.Request request)
        {
            var valid    = Validator.Validate(request);
            var response = new CreatePlayerMessages.Response()
            {
                Success  = false,
                Messages = new List <string>()
            };

            if (valid)
            {
                throw new NotImplementedException();
                //var player = new Player()
                //{
                //    Username = request.Username
                //};

                //try
                //{
                //    Gateway.CreatePlayer(player);
                //    response.Success = true;
                //}
                //catch (PlayerGatewayException ex)
                //{
                //    response.Success = false;
                //    response.Messages.Add(ex.Message);
                //    return response;
                //}
            }
            else
            {
                response.Success = false;
                response.Messages.Add("Username not valid!");
            }

            return(response);
        }