public void RunBeforeAnyTests() { var builder = new DbContextOptionsBuilder <DatabaseContext>(); builder.UseNpgsql(ConnectionString.TestDatabase()); DatabaseContext = new DatabaseContext(builder.Options); DatabaseContext.Database.EnsureCreated(); _transaction = DatabaseContext.Database.BeginTransaction(); MongoDbTestContext = new MongoDbTestContext(); }
public ProcessDataGateway(ISccvDbContext sccvDbContext, IHistoricalDataGateway historicalSocialCareGateway) { _sccvDbContext = sccvDbContext; _historicalDataGateway = historicalSocialCareGateway; }