public Activitate CreeazaActivitate(TextNume nume, int durata, Puncte punctajCastigator) { Contract.Requires <ArgumentNullException>(nume != null, "text"); var activitate = new Activitate(nume, durata, punctajCastigator); return(activitate); }
public void AdaugaActivitate(Modele.Activitate.Activitate activitate) { var result = _activitate.FirstOrDefault(a => a.Equals(activitate)); if (result != null) { throw new DuplicateWaitObjectException(); } _activitate.Add(activitate); Console.WriteLine("Activitate noua adaugata"); }
public void ActualizeazaActivitate(Modele.Activitate.Activitate activitate) { Console.WriteLine("Modificari salvate"); }