public void FailedToGetQuestions() { LoginDTO username = new LoginDTO() { UserName = "******" }; GetQuestions failedToGet = new GetQuestions() { loginDTO = username }; var response = (ResetPasswordResponseDTO)failedToGet.Execute().Result; Assert.False(response.isSuccessful); }
/// <summary> /// Get questions for user /// </summary> /// <param name="loginDTO">user</param> /// <returns>user's security questions</returns> public ResetPasswordResponseDTO GetQuestions(UserCredential userCredential) { LoginDTO loginDTO = new LoginDTO() { UserName = userCredential.Username }; ResetPasswordResponseDTO response = new ResetPasswordResponseDTO(); GetQuestions getQuestions = new GetQuestions() { loginDTO = loginDTO }; response = (ResetPasswordResponseDTO)getQuestions.Execute().Result; return(response); }
public void GetQuestions() { LoginDTO username = new LoginDTO() { UserName = "******" }; GetQuestions failedToGet = new GetQuestions() { loginDTO = username }; var response = (ResetPasswordResponseDTO)failedToGet.Execute().Result; Assert.True(response.isSuccessful); Assert.Equal("Where did you go to highschool or college?", response.Questions[2]); Assert.Equal("What is your favorite sports team?", response.Questions[6]); Assert.Equal("In what city or town does your nearest sibling live?", response.Questions[9]); }