Ejemplo n.º 1
0
        public UnitOfWorkFactory(IDbContextCache dbContextCache)
        {
            if (dbContextCache == null)
            {
                throw new ArgumentNullException(nameof(dbContextCache));
            }

            _dbContextCache = dbContextCache;
        }
Ejemplo n.º 2
0
        public LogCommand(IDbContextCache dbContextCache)
        {
            if (dbContextCache == null)
            {
                throw new ArgumentNullException(nameof(dbContextCache));
            }

            _dbContextCache = dbContextCache;
        }
Ejemplo n.º 3
0
        public void Initialize()
        {
            _dbContextFactory = new DbContextTestFactory("PupaDbContextTest");
            _dbContextCache   = new DbContextCache(_dbContextFactory);

            _unitOfWorkFactory = new UnitOfWorkFactory(_dbContextCache);

            _prizQuery   = new PrizQuery(_dbContextFactory);
            _prizCommand = new PrizCommand(_dbContextCache);
        }
Ejemplo n.º 4
0
        public UnitOfWork(IDbContextCache dbContextCache)
        {
            if (dbContextCache == null)
            {
                throw new ArgumentNullException(nameof(dbContextCache));
            }

            _dbContextCache = dbContextCache;

            _dbContext   = dbContextCache.Create();
            _transaction = _dbContext.Database.BeginTransaction();
        }
Ejemplo n.º 5
0
        public void Initialize()
        {
            _dbContextFactory = new DbContextTestFactory("FormDbContextTest");
            _dbContextCache   = new DbContextCache(_dbContextFactory);

            _unitOfWorkFactory = new UnitOfWorkFactory(_dbContextCache);

            _prizQuery   = new PrizQuery(_dbContextFactory);
            _prizCommand = new PrizCommand(_dbContextCache);

            _transmitService = new TransmitService(_prizCommand);
        }
        public void Initialize()
        {
            _dbContextFactory = new DbContextTestFactory("PupaDbContextTest");
            _dbContextCache   = new DbContextCache(_dbContextFactory);

            _unitOfWorkFactory = new UnitOfWorkFactory(_dbContextCache);

            _prizQuery   = new PrizQuery(_dbContextFactory);
            _prizCommand = new PrizCommand(_dbContextCache);

            _recruitInfoRepository = new RecruitInfoRepository(_prizQuery, _prizCommand);

            var priz        = SQLiteData.Build(1, 1, _photoExtension);
            var recruitInfo = MemoryData.Build(1, 1, _photoExtension);
        }