Пример #1
0
        private void updateTraseu()
        {
            DataGridViewCell cell = dataGridView2.SelectedCells[0];
            int         idPunga   = (int)dataGridView2.Rows[cell.RowIndex].Cells[0].Value;
            TraseuPunga traseu    = serviceCentru.GetPunga(idPunga).TraseuPunga;

            traseu.TrimiseLaAnalize = (bool)dataGridView2.Rows[cell.RowIndex].Cells[8].Value;
            traseu.SosireAnalize    = (bool)dataGridView2.Rows[cell.RowIndex].Cells[9].Value;
            traseu.StocCentru       = (bool)dataGridView2.Rows[cell.RowIndex].Cells[10].Value;
            traseu.SpitalPacient    = (bool)dataGridView2.Rows[cell.RowIndex].Cells[11].Value;
            serviceCentru.UpdateTraseu(traseu);
        }
        public void testAddAnalize()
        {  // NU RULATI , nu este delete
            DonatorService srvDon  = new DonatorService();
            Donator        donator = srvDon.GetDonator("Dmihai");
            CentruService  service = new CentruService();

            PungaSange punga = service.GetPunga(1);

            service.AddAnaliza(BIII, Pozitiv, false, false, true, false, false, -774, punga, donator);

            Assert.AreEqual(srvDon.GetAllAnalizeByIdDonator("Dmihai").Where(x => x.NivelALT == -774), 1);

            //serivice.DeleteAnaliza(analiza)
        }