public LubyIntegrationTestBase() { var options = new DbContextOptionsBuilder <LubyContext>(); _services = new ServiceCollection(); _services.AddSetupAutoMapper(); _services.AddDbContext <LubyContext>(); _services.AddEntityFrameworkInMemoryDatabase().AddDbContext <LubyContext>((_serviceProvider, options) => { options.UseInMemoryDatabase(Guid.NewGuid().ToString().Replace("-", "")) .UseInternalServiceProvider(_serviceProvider); }); _services.RegisterServices(); _serviceProvider = _services.BuildServiceProvider(); _context = _serviceProvider.GetRequiredService <LubyContext>(); }
public UnitOfWork(LubyContext context) { _context = context; }
public TimeSheetRepository(LubyContext contexto) : base(contexto) { }
protected Repository(LubyContext context) { _context = context; _dbSet = context.Set <T>(); }
public ProjectRepository(LubyContext contexto) : base(contexto) { }
public DeveloperRepository(LubyContext contexto) : base(contexto) { }
public DesenvolvedorRepository(LubyContext context) : base(context) { }
public ProjetoRepository(LubyContext context) : base(context) { }
public Repository(LubyContext context) { _context = context; }
public RepositoryBase(LubyContext contexto) { _context = contexto; _dbSet = _context.Set <TEntity>(); }
public LancamentoRepository(LubyContext context) : base(context) { }