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); }
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"); }
public void CreateCustomer(Customer c) { CustomerDAL.CreateCustomer(c); }