Exemplo n.º 1
0
        public void TestSave()
        {
            var Customer = new Customer {
                CustomerID = "123", CompanyName = "Abobrinha"
            };

            target.Save(Customer);
            var registroDB = target.GetById(Customer.CustomerID);

            Assert.IsTrue(registroDB.CustomerID == Customer.CustomerID &&
                          registroDB.CompanyName == Customer.CompanyName);

            if (registroDB.CustomerID == Customer.CustomerID &&
                registroDB.CompanyName == Customer.CompanyName)
            {
            }
        }
Exemplo n.º 2
0
 public Customer GetById(string ID)
 {
     return(target.GetById(ID));
 }