public NotificationService(FinInstContext dbContext, ITriggerRepository triggerRepository, ILogger <NotificationService> logger) { _dbContext = dbContext; _triggerRepository = triggerRepository; _logger = logger; }
public FinancialInstrumentRepository(FinInstContext dbContext, INotificationService notificationService, IMapper mapper) { _dbContext = dbContext; _notificationService = notificationService; _mapper = mapper; }
public TestWithSqlLite() { _sqliteConnection = new SqliteConnection(InMemoryCnnectionString); _sqliteConnection.Open(); var options = new DbContextOptionsBuilder <FinInstContext>() .UseSqlite(_sqliteConnection) .Options; _dbContext = new FinInstContext(options); _dbContext.Database.EnsureCreated(); }
public TestDataSeeder(FinInstContext dbContext) { _dbContext = dbContext; _dbContext.Database.EnsureDeleted(); _dbContext.Database.EnsureCreated(); }
public TriggerRepository(FinInstContext dbContext) { _dbContext = dbContext; }
public UserRepository(FinInstContext dbContext, IMapper mapper) { _dbContext = dbContext; _mapper = mapper; }