public void CleanUp()
 {
     Result[] results = Repository.GetAll();
     foreach (Result result in results)
     {
         Repository.Remove(result);
     }
     InfrastructureTestsSeed.RemoveAll(dbContext);
 }
Ejemplo n.º 2
0
 public List <ResultDTO> GetAll()
 {
     try
     {
         return(ObjectMapper.Mapper.Map <List <ResultDTO> >(repository.GetAll()));
     }
     catch (Exception)
     {
         throw new Exception();
     }
 }