Ejemplo n.º 1
0
        public void GetCustomerByIdAndEmail_Should_Success_When_InputPositiveInteger_RightFormatEmail()
        {
            //Arrange
            var customerId    = 10;
            var customerEmail = "*****@*****.**";
            //Act
            var validationService = new CustomerValidation();
            var result            = validationService.ValidationCustomerIdAndEmail(customerId, customerEmail);

            //Assert
            Assert.True(string.IsNullOrEmpty(result));
        }
Ejemplo n.º 2
0
        public void GetCustomerByIdAndEmail_Should_Fail_When_InputNegativeInteger_WrongFormatEmail()
        {
            //Arrange
            var customerId    = -52;
            var customerEmail = "musicaly central";
            //Act
            var validationService = new CustomerValidation();
            var result            = validationService.ValidationCustomerIdAndEmail(customerId, customerEmail);

            //Assert
            Assert.False(string.IsNullOrEmpty(result));
        }
Ejemplo n.º 3
0
        public void GetCustomerByIdAndEmail_Should_Fail_When_InputZeroNumber_WorngFotmatEmail()
        {
            //Arrange
            var customerId    = 0;
            var customerEmail = "b_basketb.com";
            //Act
            var validationService = new CustomerValidation();
            var result            = validationService.ValidationCustomerIdAndEmail(customerId, customerEmail);

            //Assert
            Assert.False(string.IsNullOrEmpty(result));
        }
Ejemplo n.º 4
0
        public void GetCustomerByIdAndEmail_Should_Fail_When_InputNegativeInteger_EmptyEmail()
        {
            //Arrange
            var customerId    = -64;
            var customerEmail = string.Empty;
            //Act
            var validationService = new CustomerValidation();
            var result            = validationService.ValidationCustomerIdAndEmail(customerId, customerEmail);

            //Assert
            Assert.False(string.IsNullOrEmpty(result));
        }
Ejemplo n.º 5
0
        public void GetCustomerByIdAndEmail_Should_Fail_When_InputPositiveInteger_WorngFotmatEmail()
        {
            //Arrange
            var customerId    = 6;
            var customerEmail = "rosesyJes.com";
            //Act
            var validationService = new CustomerValidation();
            var result            = validationService.ValidationCustomerIdAndEmail(customerId, customerEmail);

            //Assert
            Assert.False(string.IsNullOrEmpty(result));
        }