Пример #1
0
        public void ReadCustomerListTest()
        {
            int           id     = 0;
            List <string> errors = new List <string>();

            //id = 0
            BLCustomer.ReadCustomer(id, ref errors);
            Assert.AreEqual(1, errors.Count);
            AsynchLog.LogNow(errors);

            //no errors
            errors = new List <string>();

            BLCustomer.ReadCustomer(1, ref errors);
            Assert.AreEqual(0, errors.Count);
            AsynchLog.LogNow(errors);
        }
Пример #2
0
 public Customer ReadCustomer(int id, ref List <string> errors)
 {
     return(BLCustomer.ReadCustomer(id, ref errors));
 }