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

            _command = new PostRegisterCommand
            {
                FirstName = user.FirstName,
                LastName  = user.LastName,
                Email     = user.Email,
                Password  = "******",
            };
        }
예제 #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);
        }
예제 #3
0
 public async Task <int> Post([FromBody] PostRegisterCommand command)
 {
     return(await _mediator.Send(command));
 }