Exemplo n.º 1
0
        public static Product CreateProduct(string name, int quantiteMin, Category category, Marque marque, Fournisseur fournisseur, string remarque = "", string reference = "", DateTime dateEntree = default(DateTime), GestionProduit typeGestion = GestionProduit.Aucune)
        {
            var product = new Product
            {
                Name          = name,
                QuantiteMin   = quantiteMin,
                id            = Guid.NewGuid(),
                Remarque      = remarque,
                SiteReference = reference,
                Fournisseur   = fournisseur,
                Marque        = marque,
                Category      = category,
                DateEntree    = dateEntree,
                TypeGestion   = typeGestion,
                newObject     = true
            };

            return(product);
        }