Пример #1
0
 private void TextBoxCustomer_TextChanged(object sender, EventArgs e)
 {
     tbCustomer.BackColor = CheckString.GetColorAfterCheckString(tbCustomer.Text, CheckString.Buyer(tbCustomer.Text));
 }
Пример #2
0
 private void TextBoxEmail_TextChanged(object sender, EventArgs e)
 {
     tbEmail.BackColor = CheckString.GetColorAfterCheckString(tbEmail.Text, CheckString.Email(tbEmail.Text));
 }
Пример #3
0
 private void TextBoxCustomerINN_TextChanged(object sender, EventArgs e)
 {
     tbCustomerINN.BackColor = CheckString.GetColorAfterCheckString(tbCustomerINN.Text, CheckString.TaxpayerIdentificationNumber(tbCustomerINN.Text));
 }
Пример #4
0
 public void GetColorAfterCheckStringTest()
 {
     Assert.AreEqual(Color.Snow, CheckString.GetColorAfterCheckString("", false));
     Assert.AreEqual(Color.LightGreen, CheckString.GetColorAfterCheckString("1qe1", true));
     Assert.AreEqual(Color.LightCoral, CheckString.GetColorAfterCheckString("1qe1", false));
 }