Пример #1
0
        public void Setup()
        {
            var contextOptions = new DbContextOptionsBuilder <DrawDbContext>();

            contextOptions.UseInMemoryDatabase("RaffleTestDb");

            Context = new DrawDbContext(contextOptions.Options);

            DoSetup();
        }
 public SerialNumberRespository(DrawDbContext context)
 {
     _context = context;
 }
Пример #3
0
 public void TearDown()
 {
     DoTeardown();
     Context.Dispose();
     Context = null;
 }
 public DrawSubmissionService(DrawDbContext dbContext, IPublishDomainEvent eventPublisher)
 {
     _dbContext          = dbContext;
     this.eventPublisher = eventPublisher;
 }