コード例 #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);
        }
コード例 #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);
        }
コード例 #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);
        }
コード例 #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);
        }
コード例 #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);
        }
コード例 #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);
        }
コード例 #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);
        }
コード例 #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));
        }
コード例 #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));
        }
コード例 #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);
        }