Exemplo n.º 1
0
        public void InstanceOK()
        {
            //create an instance of the class we want to create
            clsBankDetails ABankDetails = new clsBankDetails();

            //test to see that it exists
            Assert.IsNotNull(ABankDetails);
        }
Exemplo n.º 2
0
        public void CVCDigitsPropertyOK()
        {
            //create an instance of the class we want to create
            clsBankDetails ABankDetails = new clsBankDetails();
            //create some test data to assign to the property
            int TestData = 674;

            //assign the data to the property
            ABankDetails.CVCDigits = TestData;
            //test to see that the two values are the same
            Assert.AreEqual(ABankDetails.CVCDigits, TestData);
        }
Exemplo n.º 3
0
        public void BankCardNumberPropertyOK()
        {
            //create an instance of the class we want to create
            clsBankDetails ABankDetails = new clsBankDetails();
            //create some test data to assign to the property
            Int64 TestData = 0923245367438217;

            //assign the data to the property
            ABankDetails.BankCardNumber = TestData;
            //test to see that the two values are the same
            Assert.AreEqual(ABankDetails.BankCardNumber, TestData);
        }
Exemplo n.º 4
0
        public void BankCardNamePropertyOK()
        {
            //create an instance of the class we want to create
            clsBankDetails ABankDetails = new clsBankDetails();
            //create some test data to assign to the property
            String TestData = "Ben";

            //assign the data to the property
            ABankDetails.BankCardName = TestData;
            //test to see that the two values are the same
            Assert.AreEqual(ABankDetails.BankCardName, TestData);
        }
Exemplo n.º 5
0
        public void SortCodePropertyOK()
        {
            //create an instance of the class we want to create
            clsBankDetails ABankDetails = new clsBankDetails();
            //create some test data to assign to the property
            int TestData = 124365;

            //assign the data to the property
            ABankDetails.SortCode = TestData;
            //test to see that the two values are the same
            Assert.AreEqual(ABankDetails.SortCode, TestData);
        }
Exemplo n.º 6
0
        public void ExpiryDatePropertyOK()
        {
            //create an instance of the class we want to create
            clsBankDetails ABankDetails = new clsBankDetails();
            //create some test data to assign to the property
            DateTime TestData = DateTime.Now.Date;

            //assign the data to the property
            ABankDetails.ExpiryDate = TestData;
            //test to see that the two values are the same
            Assert.AreEqual(ABankDetails.ExpiryDate, TestData);
        }
Exemplo n.º 7
0
        public void FindMethodOK()

        {
            //create an instance of the class we want to create
            clsBankDetails ABankDetails = new clsBankDetails();
            //boolean variable to store the result of the validation
            Boolean Found = false;
            //create some test data to use with the method
            int BankID = 30;

            //invoke the method
            Found = ABankDetails.Find(BankID);
            //test to see that the result is correct
            Assert.IsTrue(Found);
        }
Exemplo n.º 8
0
        public DataSet GetBankDetailsList(clsBankDetails objBankList)
        {
            Hashtable htparams = new Hashtable {
                { "in_S_No", objBankList.S_No },
                { "in_emp_bankname", objBankList.empbankname },
                { "in_emp_accno", objBankList.empaccno },
                { "in_emp_acctype", objBankList.empacctype },
                { "in_emp_ifsccode", objBankList.empifsccode },
                { "in_emp_branchname", objBankList.empbankname },
                { "in_emp_bankcity", objBankList.empbankcity },
                { "in_createdby", objBankList.createdby },
                { "in_OpName", objBankList.OpName },
                { "in_emp_id", objBankList.empid },
                { "in_emp_pfaccno", objBankList.emppfaccno },
                { "in_emp_UAN", objBankList.empUAN },
            };

            return(ExecuteDataSet("EmpBankDetails", htparams));
        }
Exemplo n.º 9
0
        public int EmpBD_InsertUpdate(clsBankDetails objclsBD)
        {
            Hashtable htparams = new Hashtable {
                { "in_S_No", objclsBD.S_No },
                { "in_emp_bankname", objclsBD.empbankname },
                { "in_emp_accno", objclsBD.empaccno },
                { "in_emp_acctype", objclsBD.empacctype },
                { "in_emp_ifsccode", objclsBD.empifsccode },
                { "in_emp_branchname", objclsBD.empbranchname },
                { "in_emp_bankcity", objclsBD.empbankcity },
                { "in_createdby", objclsBD.createdby },
                { "in_OpName", objclsBD.OpName },
                { "in_emp_id", objclsBD.empid },
                { "in_emp_pfaccno", objclsBD.emppfaccno },
                { "in_emp_UAN", objclsBD.empUAN },
            };

            return(ExecuteNonQuery("EmpBankDetails", htparams));
        }
Exemplo n.º 10
0
        public void FindSortCodeFound()

        {
            //create an instance of the class we want to create
            clsBankDetails ABankDetails = new clsBankDetails();
            //boolean variable to store the result of the validation
            Boolean Found = false;
            //boolean variable to record if data is OK
            Boolean OK = true;
            //create some test data to use with the method
            int BankID = 30;

            //invoke the method
            Found = ABankDetails.Find(BankID);
            //check the bankID
            if (ABankDetails.SortCode != 124365)
            {
                OK = false;
            }
            //test to see that the result is correct
            Assert.IsTrue(OK);
        }