// public void checkSubscriptionBox(){ // customer.setSubscription(true); // if(!this.toBeNotified.isSelected()) // this.toBeNotified.click(); // } // // public void uncheckSubscriptionBox(){ // customer.setSubscription(false); // if(this.toBeNotified.isSelected()) // this.toBeNotified.click(); // } // // public void verifySubscriptionIsChecked(){ // Assert.assertTrue("Subscription box is not checked", this.toBeNotified.isSelected()); // } // // public void verifySubscriptionIsNotChecked(){ // Assert.assertFalse("Subscription box is checked", this.toBeNotified.isSelected()); // } private void addCustomerInfo() { this.enterName(customer.getName()); // this.enterLastName(customer.getLastName()); this.enterEmailAddress(customer.getEmailAddress()); // this.enterPhone(customer.getPhone()); this.enterUserName(customer.getUserName()); // if(customer.isSubscription()){ // this.checkSubscriptionBox(); // }else{ // this.uncheckSubscriptionBox(); // } // this.enterPassword(customer.getPassword()); this.enterPasswordConfirmation(customer.getConfirmPassword()); }
public Address(Customer consumer) { customerName = new string[2]; addressLine1 = "1200 E. 151st Street"; city = "Olathe"; state = "Kansas"; country = "United States"; zip = "66062-3426"; phone = "1234567890"; preferredBillingAddress = false; preferredBillingAddress_img = "--"; this.customer = consumer; customer.getName().Split(customerName,StringSplitOptions.RemoveEmptyEntries); this.firstName = customerName[0]; this.lastName = customerName[1]; // this.phone = customer.getPhone(); }
public Address(Customer consumer) { customerName = new string[2]; addressLine1 = "1200 E. 151st Street"; city = "Olathe"; state = "Kansas"; country = "United States"; zip = "66062-3426"; phone = "1234567890"; preferredBillingAddress = false; preferredBillingAddress_img = "--"; this.customer = consumer; customer.getName().Split(customerName, StringSplitOptions.RemoveEmptyEntries); this.firstName = customerName[0]; this.lastName = customerName[1]; // this.phone = customer.getPhone(); }