public void Setup() { var contextOptions = new DbContextOptionsBuilder <DrawDbContext>(); contextOptions.UseInMemoryDatabase("RaffleTestDb"); Context = new DrawDbContext(contextOptions.Options); DoSetup(); }
public SerialNumberRespository(DrawDbContext context) { _context = context; }
public void TearDown() { DoTeardown(); Context.Dispose(); Context = null; }
public DrawSubmissionService(DrawDbContext dbContext, IPublishDomainEvent eventPublisher) { _dbContext = dbContext; this.eventPublisher = eventPublisher; }