Exemplo n.º 1
0
        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>();
        }
Exemplo n.º 2
0
 public UnitOfWork(LubyContext context)
 {
     _context = context;
 }
 public TimeSheetRepository(LubyContext contexto) : base(contexto)
 {
 }
Exemplo n.º 4
0
 protected Repository(LubyContext context)
 {
     _context = context;
     _dbSet   = context.Set <T>();
 }
Exemplo n.º 5
0
 public ProjectRepository(LubyContext contexto) : base(contexto)
 {
 }
Exemplo n.º 6
0
 public DeveloperRepository(LubyContext contexto) : base(contexto)
 {
 }
 public DesenvolvedorRepository(LubyContext context) : base(context)
 {
 }
Exemplo n.º 8
0
 public ProjetoRepository(LubyContext context) : base(context)
 {
 }
Exemplo n.º 9
0
 public Repository(LubyContext context)
 {
     _context = context;
 }
Exemplo n.º 10
0
 public RepositoryBase(LubyContext contexto)
 {
     _context = contexto;
     _dbSet   = _context.Set <TEntity>();
 }
Exemplo n.º 11
0
 public LancamentoRepository(LubyContext context) : base(context)
 {
 }