Esempio n. 1
0
 public static Bestelling MaakBestelling(Klant klant, Dictionary <Product, int> producten, IDFactory idFactory)
 {
     try
     {
         return(new Bestelling(idFactory.MaakBestellingID(), klant, DateTime.Now, producten));
     }
     catch (BestellingException ex)
     {
         throw new BestellingFactoryException("MaakBestelling", ex);
     }
 }
Esempio n. 2
0
 public static Bestelling MaakBestelling(Klant klant, IDFactory idFactory)
 {
     try
     {
         return(new Bestelling(idFactory.MaakBestellingID(), klant, DateTime.Now));
     }
     catch (BestellingException ex)
     {
         throw new BestellingFactoryException("MaakBestelling", ex);
     }
 }