public UnitOfWorkFactory(IDbContextCache dbContextCache) { if (dbContextCache == null) { throw new ArgumentNullException(nameof(dbContextCache)); } _dbContextCache = dbContextCache; }
public LogCommand(IDbContextCache dbContextCache) { if (dbContextCache == null) { throw new ArgumentNullException(nameof(dbContextCache)); } _dbContextCache = dbContextCache; }
public void Initialize() { _dbContextFactory = new DbContextTestFactory("PupaDbContextTest"); _dbContextCache = new DbContextCache(_dbContextFactory); _unitOfWorkFactory = new UnitOfWorkFactory(_dbContextCache); _prizQuery = new PrizQuery(_dbContextFactory); _prizCommand = new PrizCommand(_dbContextCache); }
public UnitOfWork(IDbContextCache dbContextCache) { if (dbContextCache == null) { throw new ArgumentNullException(nameof(dbContextCache)); } _dbContextCache = dbContextCache; _dbContext = dbContextCache.Create(); _transaction = _dbContext.Database.BeginTransaction(); }
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); }