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