public Activitate CreeazaActivitate(TextNume nume, int durata, Puncte punctajCastigator)
        {
            Contract.Requires <ArgumentNullException>(nume != null, "text");
            var activitate = new Activitate(nume, durata, punctajCastigator);

            return(activitate);
        }
Beispiel #2
0
        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");
        }
Beispiel #3
0
 public void ActualizeazaActivitate(Modele.Activitate.Activitate activitate)
 {
     Console.WriteLine("Modificari salvate");
 }