示例#1
0
        public void NameShouldNotDuplicated()
        {
            AddCustomerInfoTesting LTO = new AddCustomerInfoTesting();

            string name = "khor chin siang";

            bool result = LTO.NameIsDuplicated(name);

            Assert.AreEqual(true, result);
        }
示例#2
0
        public void ICShouldNotDuplicated()
        {
            AddCustomerInfoTesting LTO = new AddCustomerInfoTesting();

            string ICNo = "9311010231";

            bool result = LTO.ICIsDuplicated(ICNo);

            Assert.AreEqual(true, result);
        }
示例#3
0
        public void PhoneNoShouldNotDuplicated()
        {
            // arrange the clas AddCustomerTest
            AddCustomerInfoTesting LTO = new AddCustomerInfoTesting();
            //Expected result
            string phoneNo = "017451123";

            bool result = LTO.PhoneNoIsDuplicated(phoneNo);

            //assert result
            Assert.AreEqual(true, result);
        }