示例#1
0
        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);
        }
示例#2
0
        public static void SignUp()
        {
            Console.WriteLine("Enter login: "******"Enter password: "******": " + result.Message);
        }