public void CheckConstructorWithParameters_CheckNullableEmailActivationService_ShouldThrowException()
        {
            // Arrange
            IEmailActivationService emailActivationService = null;

            // Assert
            Assert.Throws <ArgumentNullException>(() => new ConfirmForgotPasswordViewModel(emailActivationService, null, dialogServiceMock.Object));
        }
        public void CheckConstructorWithParameters_CheckNullableEmailActivationService_ShouldThrowException()
        {
            // Arrange
            IEmailActivationService emailActivationService = null;

            // Assert
            Assert.Throws <ArgumentNullException>(
                () => new BirthdayRegistrationViewModel(emailActivationService, navigationServiceMock.Object, dialogServiceMock.Object));
        }
        public EmailActivationServiceTests()
        {
            email = "email";
            code  = "code";

            confirmEmailResponseDto = new ConfirmEmailResponseDto();

            httpServiceMock = new Mock <IHttpService>();
            httpServiceMock
            .SetupSequence(hs => hs.PostAsync <ConfirmEmailRequestDto, ConfirmEmailResponseDto>(
                               It.IsAny <Uri>(), It.IsAny <ConfirmEmailRequestDto>(), It.IsAny <string>()))
            .ReturnsAsync(confirmEmailResponseDto)
            .ThrowsAsync(new System.Net.WebException());

            httpServiceMock
            .SetupSequence(hs => hs.PostAsync <string, string>(
                               It.IsAny <Uri>(), It.IsAny <string>(), It.IsAny <string>()))
            .ReturnsAsync(string.Empty)
            .ThrowsAsync(new System.Net.WebException());

            emailActivationService = new EmailActivationService(httpServiceMock.Object);
        }