public DatabaseFactoryHelper(EFContextHelper dtContext)
 {
     dataContext = dtContext;
 }
 public DbContext Get()
 {
     return dataContext ?? (dataContext = new EFContextHelper());
 }
        public void Initialize()
        {
            EntityConnection connection = Effort.EntityConnectionFactory.CreateTransient("name=TestContext");

            databaseContext = new EFContextHelper(connection);

            // Seed in-memory database with some data
            var listRepos = MockHelper.GenerateFakeRepos("felipecembranelli");
            databaseContext.GitHubRepo.AddRange(listRepos);
            databaseContext.SaveChanges();

            // create repository
            objRepo = new GitHubRepoRepository(new DatabaseFactoryHelper(databaseContext));
        }