public bool SignUpCust(string name, string pass, long phone, ref bool IsSign)
        {
            List <Customer> cstms1 = CustomerDB.GetAllCustomers();
            Customer        c      = new Customer {
                Name = name, Password = pass, Phone = phone
            };

            CustomerDB.SignUp(c, ref IsSign);
            return(IfExists(c, cstms1));
        }
Exemple #2
0
        public void GetAllCustomersShouldReturnAllCustomers()
        {
            using (var context = new Entity.p0storeContext(options)){
                CustomerDB _customerDB = new CustomerDB(context);
                var        customers   = _customerDB.GetAllCustomers();
                int        count       = customers.Count;

                Assert.Equal(1, count);
            }
        }
Exemple #3
0
 public IEnumerable <Customer> GetAllCustomers()
 {
     return(cDb.GetAllCustomers());
 }
Exemple #4
0
 public List <Customer> GetAllCustomers()
 {
     return(_customerDB.GetAllCustomers());
 }