public void FindMethodOK() { clsCustomer Customer = new clsCustomer(); Boolean Found = false; Int32 CustomerId = 1; Found = Customer.Find(CustomerId); Assert.IsTrue(Found); }
// END OF CUSTOMER POSTCODE public void FindMethodOK() { clsCustomer AnCustomer = new clsCustomer(); Boolean Found = false; int CustomerNumber = 1; Found = AnCustomer.Find(CustomerNumber); Assert.IsTrue(Found); }
public void TestIsEmailConfirmedFound() { clsCustomer Customer = new clsCustomer(); Boolean Found = false; Boolean OK = true; Int32 CustomerId = 1; Found = Customer.Find(CustomerId); if (Customer.isEmailConfirmed != true) { OK = false; } Assert.IsTrue(OK); }
public void TestAddressNotFound() { clsCustomer Customer = new clsCustomer(); Boolean Found = false; Boolean OK = true; Int32 CustomerId = 1; Found = Customer.Find(CustomerId); if (Customer.Address != "Test Address") { OK = false; } Assert.IsTrue(OK); }
public void TestEmailAddressFound() { clsCustomer Customer = new clsCustomer(); Boolean Found = false; Boolean OK = true; Int32 CustomerId = 1; Found = Customer.Find(CustomerId); if (Customer.EmailAddress != "*****@*****.**") { OK = false; } Assert.IsTrue(OK); }
public void TestPassswordFound() { clsCustomer Customer = new clsCustomer(); Boolean Found = false; Boolean OK = true; Int32 CustomerId = 1; Found = Customer.Find(CustomerId); if (Customer.Password != "password123") { OK = false; } Assert.IsTrue(OK); }
public void TestNameFound() { clsCustomer Customer = new clsCustomer(); Boolean Found = false; Boolean OK = true; Int32 CustomerId = 1; Found = Customer.Find(CustomerId); if (Customer.Name != "Joe Doe") { OK = false; } Assert.IsTrue(OK); }
public void TestDateCreateAtFound() { clsCustomer Customer = new clsCustomer(); Boolean Found = false; Boolean OK = true; Int32 CustomerId = 1; Found = Customer.Find(CustomerId); if (Customer.CreatedAt != Convert.ToDateTime("16/09/2019")) { OK = false; } Assert.IsTrue(OK); }
public void TestCustomerNotFound() { clsCustomer Customer = new clsCustomer(); Boolean Found = false; Boolean OK = true; Int32 CustomerId = 1; Found = Customer.Find(CustomerId); if (Customer.CustomerId != 1) { OK = false; } Assert.IsTrue(OK); }
public void FindMethodOK() { //create an instance of the class we want to create clsCustomer theCustomer = new clsCustomer(); //Boolean variable to store the results of the validation Boolean Found = false; //create some test data to use with the method Int32 CustomerId = 4; //invoe the method Found = theCustomer.Find(CustomerId); //test to see if the result is true Assert.IsTrue(Found); }
public void TestCustomerPostcodeFound() { clsCustomer AnCustomer = new clsCustomer(); Boolean Found = false; Boolean OK = true; int CustomerNumber = 1; Found = AnCustomer.Find(CustomerNumber); if (AnCustomer.CustomerPostcode != "T35 755") { OK = false; } Assert.IsTrue(OK); }
public void TestCustomerDOBFound() { clsCustomer AnCustomer = new clsCustomer(); Boolean Found = false; Boolean OK = true; int CustomerNumber = 1; Found = AnCustomer.Find(CustomerNumber); if (AnCustomer.CustomerDOB != Convert.ToDateTime("26/06/1990")) { OK = false; } Assert.IsTrue(OK); }
public void TestCustomerGenderFound() { clsCustomer AnCustomer = new clsCustomer(); Boolean Found = false; Boolean OK = true; int CustomerNumber = 1; Found = AnCustomer.Find(CustomerNumber); if (AnCustomer.CustomerGender != "M") { OK = false; } Assert.IsTrue(OK); }
public void TestCustomerEmailFound() { clsCustomer AnCustomer = new clsCustomer(); Boolean Found = false; Boolean OK = true; int CustomerNumber = 1; Found = AnCustomer.Find(CustomerNumber); if (AnCustomer.CustomerEmail != "*****@*****.**") { OK = false; } Assert.IsTrue(OK); }
public void FindMethodOK() { //create an instance of the class we want to create clsCustomer AnCustomer = new clsCustomer(); //boolean variable to store the result of the validation Boolean Found = false; //create some test data to use with the method int CustomerNo = 21; //invoke the method Found = AnCustomer.Find(CustomerNo); //test to see that the result is correct Assert.IsTrue(Found); }
public void TestCustomerIdFound() { //create an instance of the class we want to create clsCustomer ACustomer = new clsCustomer(); //boolean variable to store the result of the search Boolean Found = false; //boolean variable to record if data is ok Boolean OK = true; //create some test data to use with the method Int16 CustomerId = 1; //invoke the method Found = ACustomer.Find(CustomerId); //check the customer id if (ACustomer.CustomerId != 1) { OK = false; } //test to see that the result is correct Assert.IsTrue(OK); }
public void TestCustomerRegisteredDateFound() { //create an instance of the class we want to create clsCustomer theCustomer = new clsCustomer(); //boolean variable to store the result of the search Boolean Found = false; //boolean variable to record if data is OK (assume it is) Boolean OK = true; //create some test data to use with the method Int32 CustomerId = 4; //invoke the method Found = theCustomer.Find(CustomerId); //check the registered date if (theCustomer.CustomerRegisteredDate != Convert.ToDateTime("06/05/2021")) { OK = false; } //test to see that the result is correct Assert.IsTrue(OK); }
public void TestActiveFound() { //create an instance of the class we want to create clsCustomer AnCustomer = new clsCustomer(); //boolean variable to store the result of the search Boolean Found = false; //boolean variable to record if data is OK (assume it is) Boolean OK = true; //create some test data to use with the method int CustomerNo = 21; //invoke the method Found = AnCustomer.Find(CustomerNo); //check the property if (AnCustomer.Active != true) { OK = false; } //test to see that the result is correct Assert.IsTrue(OK); }
public void TestActiveFound() { //create an instance of the class we want to create clsCustomer theCustomer = new clsCustomer(); //Boolean variable to store the results of the search Boolean Found = false; //boolean variable to record if data is OK (assume it is) Boolean OK = true; //create some test data to use with method Int32 CustomerId = 4; //invoke the method Found = theCustomer.Find(CustomerId); //check the customer activity if (theCustomer.Active != true) { OK = false; } //test to see that the result is correct Assert.IsTrue(OK); }