void IProvideAllOfTheRequiredDataForTheRegistrationPage() { var user = Build.User.Build(); _command = new PostRegisterCommand { FirstName = user.FirstName, LastName = user.LastName, Email = user.Email, Password = "******", }; }
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); }
public async Task <int> Post([FromBody] PostRegisterCommand command) { return(await _mediator.Send(command)); }