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

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