Exemplo n.º 1
0
        public int Create(string lname, string Fname /*string User, string Password*/)
        {
            // Call the DAL to create a new record.
            CustomerDAL customerDAL = new CustomerDAL();
            var         custID      = customerDAL.CreateCustomer(lname, Fname /*, User, Password*/);

            return(custID);
        }
Exemplo n.º 2
0
        public void CreateCustomerTest()
        {
            CustomerDAL dal = new CustomerDAL(ConfigurationManager.ConnectionStrings["Shipper"].ConnectionString);



            var result = new CustomerDTO
            {
                EMail       = "Test",
                Addres      = "Test",
                Phone       = "Test",
                Description = "Test"
            };

            result = dal.CreateCustomer(result);
            Assert.IsTrue(result.CustomerID >= 0, "returned ID should be more than zero");
        }
Exemplo n.º 3
0
 public void CreateCustomer(Customer c)
 {
     CustomerDAL.CreateCustomer(c);
 }