void IProvideAllOfTheRequiredDataForTheRegistrationPage()
        {
            var user = Build.User.Build();

            _command = new PostRegisterCommand
            {
                FirstName = user.FirstName,
                LastName  = user.LastName,
                Email     = user.Email,
                Password  = "******",
            };
        }
Exemple #2
0
        void ARegisteredUser()
        {
            var user = Build.User.Build();

            _registerCommand = new PostRegisterCommand
            {
                FirstName = user.FirstName,
                LastName  = user.LastName,
                Email     = user.Email,
                Password  = "******",
            };

            _userId = CallClientPost <int>("api/users/register", _registerCommand);
        }
Exemple #3
0
 public async Task <int> Post([FromBody] PostRegisterCommand command)
 {
     return(await _mediator.Send(command));
 }