コード例 #1
0
        public void TestLoginCustomerMissingPass()
        {
            //arrenge
            string   email    = "*****@*****.**";
            string   pass     = "";
            Customer customer = new Customer();

            using (PersonService.PersonServiceClient proxy = new PersonService.PersonServiceClient())
            {
                //act
                customer = proxy.LoginCustomer(email, pass);
            }
            //assert
            Assert.IsNull(customer);
        }
コード例 #2
0
        public void TestLoginCustomerMissingEmailAndPass()
        {
            //Arrange
            string   username = "";
            string   pass     = "";
            Customer customer = new Customer();;

            using (PersonService.PersonServiceClient proxy = new PersonService.PersonServiceClient())
            {
                //Act
                customer = proxy.LoginCustomer(username, pass);
            }
            //Assert
            Assert.IsNull(customer);
        }
コード例 #3
0
        public void TestLoginCustomerMissingEmail()
        {
            //arrenge
            string   email    = "";
            string   pass     = "******";
            Customer customer = new Customer();

            using (PersonService.PersonServiceClient proxy = new PersonService.PersonServiceClient())
            {
                //act
                customer = proxy.LoginCustomer(email, pass);
            }
            //assert
            Assert.IsNull(customer);
        }