示例#1
0
 public void CleanupTests()
 {
     _componentaService.GetAll().ToList().ForEach(x =>
     {
         if (x.Donatie.Donator.Nume.CompareTo("TestFunctionalPrelucrare") == 0)
         {
             _componentaService.Delete(x.Id);
         }
     });
     _donatieService.GetAll().ToList().ForEach(x =>
     {
         if (x.Donator.Nume.CompareTo("TestFunctionalPrelucrare") == 0)
         {
             _donatieService.Delete(x.Id);
         }
     });
     _donatorService.GetAll().ToList().ForEach(x =>
     {
         if (x.Nume.CompareTo("TestFunctionalPrelucrare") == 0)
         {
             _donatorService.Delete(x.Id);
         }
     });
 }