public void CleanupAfterAllTests() { using (IProficaoContext context = _ioC.Resolve <IProficaoContext>()) { IQueryable <Proficao> proficoes = context.GetAll(); if (proficoes.Any()) { Assert.IsTrue(context.DeleteRange(proficoes)); } } }
public ProficaoRepository(IProficaoContext context) : base(context) { _context = context; }