예제 #1
0
        public void AddingCustomerShouldWorkFine()
        {
            string customerID = "qwert";

            DAO.AddCustomer(customerID, "new company", "1", "2", "3", "4", "5", "6", "7", "8", "9");

            using (var db = new NorthwindEntities())
            {
                var addedCustomer = db.Customers.FirstOrDefault(c => c.CustomerID == customerID);

                Assert.AreEqual("new company", addedCustomer.CompanyName);
            }
        }
예제 #2
0
 public void AddingNullCompanyNameCustomerShouldThrowException()
 {
     DAO.AddCustomer(null, null);
 }
예제 #3
0
 public void AddCustomer(Customer customer)
 {
     dataAccess.AddCustomer(customer);
 }