public TransmitService(IPrizCommand prizCommand)
        {
            if (prizCommand == null)
            {
                throw new ArgumentNullException(nameof(prizCommand));
            }

            _prizCommand = prizCommand;
        }
Beispiel #2
0
        public void Initialize()
        {
            _dbContextFactory = new DbContextTestFactory("PupaDbContextTest");
            _dbContextCache   = new DbContextCache(_dbContextFactory);

            _unitOfWorkFactory = new UnitOfWorkFactory(_dbContextCache);

            _prizQuery   = new PrizQuery(_dbContextFactory);
            _prizCommand = new PrizCommand(_dbContextCache);
        }
        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);
        }
Beispiel #5
0
        public RecruitInfoRepository(IPrizQuery prizQuery, IPrizCommand prizCommand)
        {
            if (prizQuery == null)
            {
                throw new ArgumentNullException(nameof(prizQuery));
            }

            if (prizCommand == null)
            {
                throw new ArgumentNullException(nameof(prizCommand));
            }

            _prizQuery   = prizQuery;
            _prizCommand = prizCommand;
        }