public Customer AddCustomer(
            string name,
            string phoneNumber,
            string mail,
            string physicalAddress,
            string zipCode,
            string city,
            string password
            )
        {
            var customer = PersonFactory.MakeCustomer(
                name,
                PersonFactory.MakeDetails(
                    phoneNumber,
                    mail,
                    physicalAddress,
                    zipCode,
                    city
                    ),
                password
                );

            _customers.Add(customer);
            return(customer);
        }
 public WebAuthentificationService()
 {
     _employees = new List <Employee>()
     {
         PersonFactory.MakeStorekeeper(
             "Quentin",
             "Tarantino",
             "4",
             "MatParisStock",
             "entrepotfantome",
             DateTime.Now,
             PersonFactory.MakeDetails(
                 "0777777777",
                 "*****@*****.**",
                 "21 Hollywood Boulveard",
                 "90028",
                 "Los Angeles"
                 )
             )
     };
     _customers = new List <Customer>()
     {
         PersonFactory.MakeCustomer(
             "Already",
             new Details(
                 "0604050405",
                 "*****@*****.**",
                 "my address bis",
                 "31666",
                 "Ville"
                 ),
             "notfunnypassword"
             )
     };
 }
Esempio n. 3
0
 public Customer MakeCustomer(
     string name,
     string phoneNumber,
     string mail,
     string password,
     string physicalAddress,
     string zipCode,
     string city
     )
 {
     return(PersonFactory.MakeCustomer(
                name,
                PersonFactory.MakeDetails(
                    phoneNumber,
                    mail,
                    physicalAddress,
                    zipCode,
                    city
                    ),
                password
                ));
 }