示例#1
0
        public void InitializeTests()
        {
            _donator = new Donator
            {
                DataDonarePosibila = DateTime.Now,
                GrupaDeSange       = 7,
                Nume               = "TestFunctionalPrelucrare",
                Prenume            = "TestFunctionalPrelucrare",
                TipUtilizator      = "Donator",
                InstitutieAsociata = 10,
                UserName           = "******",
                Password           = "******"
            };

            _donatorService.Add(_donator);

            // create a mock donatie

            _donatiePrelucrabila = new Donatie
            {
                GrupaDeSange       = 6,
                DataDonare         = DateTime.Now,
                IdDonator          = _donator.Id,
                EtapaDonare        = "Analizata",
                InstitutieAsociata = _donator.InstitutieAsociata,
                MotivRefuz         = ""
            };

            _donatieService.Add(_donatiePrelucrabila);
        }