public void Setup() { var optionsInMemory = new DbContextOptionsBuilder <MiHogarContextTest>().UseInMemoryDatabase("miHogar").Options; _context = new MiHogarContextTest(optionsInMemory); _unitOfWork = new UnitOfWork(_context); }
public void Setup() { //optionsBuilder.UseMySql(@"Server=localhost; database=cempreddp;uid=acceso;pwd=acceso;"); var optionsInMemory = new DbContextOptionsBuilder <MiHogarContextTest>().UseInMemoryDatabase("MiHogar").Options; _context = new MiHogarContextTest(optionsInMemory); _unitOfWork = new UnitOfWork(_context); }