public async Task <IActionResult> CompleteRegistration([FromBody] CompleteRegistrationDto model) { if (!ModelState.IsValid) { Forbid(); } await _registerService.CompleteRegistrationAsync(model); return(Ok()); }
public CompleteRegistrationDto Build(string lowellReference, string userId, string userEmail) { var dto = new CompleteRegistrationDto() { EmailAddress = userEmail, LowellReference = lowellReference, UserId = userId }; return(dto); }
public void CompleteRegistrationProcessAsync_SendsDataToAp_ReturnsResults() { var dto = new CompleteRegistrationDto() { EmailAddress = "*****@*****.**", LowellReference = "100262575", Company = 1, UserId = new Guid().ToString() }; var result = _process.CompleteRegistrationProcessAsync(dto); Assert.IsInstanceOfType(result, typeof(Task <CreatedUserDto>)); _mockApi.Verify(x => x.CompleteRegistrationAsync(dto, It.IsAny <string>()), Times.Once); }
public void CompleteRegistrationAsync_ShouldCallCompleteRegistration_Once() { //Arrange var completeRegistrationDto = new CompleteRegistrationDto() { EmailAddress = It.IsAny <string>(), LowellReference = It.IsAny <string>(), UserId = It.IsAny <string>() }; //Act var result = _registerService.CompleteRegistrationAsync(completeRegistrationDto); //Assert _mockCompleteRegistrationProcess.Verify(x => x.CompleteRegistrationProcessAsync(completeRegistrationDto), Times.Once); }
public async Task CompleteRegistration(CompleteRegistrationDto dto) { var innerUrl = $"{_baseUrl}api/Register/CompleteRegistration"; await _restClient.PostNoResponseAsync(innerUrl, dto); }
public async Task CompleteRegistrationProcessAsync(CompleteRegistrationDto dto) { await _caseflowApiProxy.CompleteRegistrationAsync(dto, dto.ReplayId); }
public async Task CompleteRegistrationAsync(CompleteRegistrationDto model) { await _completeRegistrationProcess.CompleteRegistrationProcessAsync(model); }
public async Task CompleteRegistration(CompleteRegistrationDto completeRegistrationDto) { await _apiGatewayProxy.CompleteRegistration(completeRegistrationDto); }
public async Task CompleteRegistrationAsync(CompleteRegistrationDto dto, string replayId) { string uri = $"v1/users/{Uri.EscapeDataString(dto.UserId)}"; await PutWithNoReturnTypeAsync <CompleteRegistrationDto>(uri, dto, replayId); }