protected EventQueueContext GetContextWithData(string dbName) { var options = new DbContextOptionsBuilder <EventQueueContext>() .UseInMemoryDatabase(databaseName: dbName) .Options; var context = new EventQueueContext(options); return(context); }
protected void Setup(string dbName) { _context = GetContextWithData(dbName); _service = new EventService(_context); }
public EventService(EventQueueContext context) { _context = context; }