public void Settup() { var options = new DbContextOptionsBuilder <EntityFrameworkInmemoryDbContext>() .UseInMemoryDatabase(Guid.NewGuid().ToString()) .Options; ctx = new EntityFrameworkInmemoryDbContext(options); repo = new Repository <MocProfileInfo, int>(ctx); }
public void Cleanup() { ctx = null; repo = null; }