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)); }
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); } }
public IEnumerable <Customer> GetAllCustomers() { return(cDb.GetAllCustomers()); }
public List <Customer> GetAllCustomers() { return(_customerDB.GetAllCustomers()); }