コード例 #1
0
 public void ValidateCustomerValid()
 {
     this.customerValidation = new CustomerValidation(base.ValidCustomer);
     Assert.IsTrue(this.customerValidation.ValidateCustomer());
 }
コード例 #2
0
 public void ValidateCustomerMissingLastName()
 {
     this.customerValidation = new CustomerValidation(base.InvalidCustomerLastName);
     //TODO: check for validation message MissingFirstOrAndLastName
     Assert.IsFalse(this.customerValidation.ValidateCustomer());
 }
コード例 #3
0
 public void ValidateCustomerNotInitialisedCustomer()
 {
     //TODO : if there were messages implemented then check for error message
     this.customerValidation = new CustomerValidation(null);
     Assert.IsFalse(this.customerValidation.ValidateCustomer());
 }
コード例 #4
0
 public void ValidateCustomerInvalidEmail()
 {
     this.customerValidation = new CustomerValidation(base.InvalidCustomerEmail);
     //TODO: check for validation message InvalidEmail
     Assert.IsFalse(this.customerValidation.ValidateCustomer());
 }