internal Depozit(string nume, int nrRaft) { this.nume = nume; this.nrRaft = nrRaft; Tricouri = new Tricouri(); Esarfe = new Esarfe(); Fuste = new Fuste(); }
public void AgaugaEsarfa(string model, string culoare, int numar) { Contract.Requires(model != null, "model esarfa"); if (capacitateDepozit > 0) { var esarfa = new Esarfa(model, culoare, numar); Esarfe.AdaugaEsarfa(esarfa); capacitateDepozit--; } else { Console.WriteLine("Nu mai sunt locuri in depozit"); } }