Just make the context generic
Change the generic repository to look like that for example:
public class GenericRepository<TContext, TEntity>
where TContext: DbContext
where TEntity: class
{
internal TContext context;
internal DbSet<TEntity> dbSet;
public GenericRepository(TContext context)
{
this.context = context;
this.dbSet = context.Set<TEntity>();
}
Now you can instantiate a repository for any kind of context.