public Provider AddProvider( string name, string phoneNumber, string mailAddress, string physicalAddress, string zipCode, string city, Catalog catalog ) { var newProvider = new Provider( name, PersonFactory.MakeDetails( phoneNumber, mailAddress, physicalAddress, zipCode, city ), catalog ); _providers.Add(newProvider); return(newProvider); }
public AuthentificationService() { _employees = new List <Employee>() { PersonFactory.MakeStorekeeper( "Mathieu", "Dicaprio", "3", "MatMatStock", "brico2000clavy", DateTime.Now, PersonFactory.MakeDetails( "0666666666", "*****@*****.**", "21 Baker street", "EC2P 2E", "London" ) ), PersonFactory.MakeCashier( "Lopez", "Cindy", "2", "123456", DateTime.Now, new Details( "077777777", "*****@*****.**", "75 rue de Paris", "75000", "Paris" ) ) }; }
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" ) }; }
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 )); }