Example #1
0
        public void GetALLTest()
        {
            SupplierDAL     dal  = new SupplierDAL();
            List <Supplier> list = dal.GetALL();

            Assert.AreEqual(2, list.Count);

            Supplier s = list[0];

            Assert.AreEqual("12", s.SupplierID);
            Assert.AreEqual("1", s.SupplierName);
            Assert.AreEqual("1", s.SpellingCode);
            Assert.AreEqual("1", s.Address);
            Assert.AreEqual("1", s.ZipCode.ToString().Trim());
            Assert.AreEqual("1", s.Tel);
            Assert.AreEqual("1", s.Fax);
            Assert.AreEqual("1", s.BankName);
            Assert.AreEqual("1", s.BankAccount);
            Assert.AreEqual("1", s.Contacter);
            Assert.AreEqual("1", s.Email);
        }
Example #2
0
 public List <Supplier> GetALL()
 {
     return(sDAL.GetALL());
 }