public UserValidatorTests() { email = "email"; signUpResponseDto = new SignUpResponseDto(); httpServiceMock = new Mock <IHttpService>(); httpServiceMock .SetupSequence(hs => hs.PostAsync <SignUpRequestDto, SignUpResponseDto>( It.IsAny <Uri>(), It.IsAny <SignUpRequestDto>(), It.IsAny <string>())) .ReturnsAsync(signUpResponseDto) .ThrowsAsync(new System.Net.WebException()); userValidator = new UserValidator(httpServiceMock.Object); }
public static void SignUp() { Console.WriteLine("Enter login: "******"Enter password: "******": " + result.Message); }