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); }
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); }
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); }
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); }
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); }
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); }
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); }
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)); }
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)); }
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); }