public IntegrationTestFixture() { WebApplicationFactory = new TestWebApplicationFactory <VincitWebApplication.Startup>(); Environment.SetEnvironmentVariable("SqliteConnection", CONNECTION_STRING); var contextOptions = new DbContextOptionsBuilder <iot_dbContext>() .UseSqlite(CONNECTION_STRING) .Options; _context = new iot_dbContext(contextOptions); _repositoryWrapper = new RepositoryWrapper(_context); SensorService = new SensorService(_repositoryWrapper); }
public BaseRepository(iot_dbContext repositoryContext) { Context = repositoryContext; }
public RepositoryWrapper(iot_dbContext repositoryContext) { _context = repositoryContext; }
public CubesensorsDatumRepository(iot_dbContext context) : base(context) { }