Example #1
0
 public void RepartizareCursanti(string nume, Punctaj punctaj)
 {
     if (punctaj.ValoareNota > 0 && punctaj.ValoareNota < 35)
     {
         nivelLimbaListA.Add(nume);
         NivelC = NivelCursant.A;
     }
     else
     if (punctaj.ValoareNota >= 35 && punctaj.ValoareNota < 80)
     {
         nivelLimbaListB.Add(nume);
         NivelC = NivelCursant.B;
     }
     else
     if (punctaj.ValoareNota >= 80 && punctaj.ValoareNota <= 100)
     {
         nivelLimbaListC.Add(nume);
         NivelC = NivelCursant.C;
     }
     else
     if (punctaj.ValoareNota < 0 && punctaj.ValoareNota > 100)
     {
         Console.WriteLine("Punctajul nu este intre 0 si 100");
     }
 }
Example #2
0
        internal void CalculeazaPretTotal(Punctaj punctaj)
        {
            Contract.Requires(punctaj != null, "punctaj");
            Contract.Requires(PretPachet != null, "pret pachet");
            Contract.Requires(PreturiActivitati.Media.Valoare != null, "preturi activitati");

            var valPunctaj = punctaj.Calcul;         /////////////////////////////

            PretTotal = new Pret(Math.Round(valPunctaj * PretPachet.Valoare + (1 - valPunctaj) * PreturiActivitati.Media.Valoare));
        }
Example #3
0
        internal Workshop(PlainText nume, Punctaj clasament)
        {
            Contract.Requires(nume != null, "nume");
            Contract.Requires(clasament != null, "clasament");

            Nume           = nume;
            Clasament      = clasament;
            _firmeInscrise = new List <Firma>();
            Stare          = StareWorkshop.Inscrieri;
            Laboratoare    = new Laboratoare();
            Traininguri    = new Traininguri();
        }
Example #4
0
 internal Workshop(PlainText nume, Punctaj clasament, List <Firma> firmeInscrise) : this(nume, clasament)
 {
     Contract.Requires(firmeInscrise != null, "lista de firme inscrise");
     _firmeInscrise = firmeInscrise;
 }
Example #5
0
        public void PunctajTest(int punctaj)
        {
            Punctaj punctajTest = new Punctaj(punctaj);

            Assert.AreEqual(15, punctaj);
        }