コード例 #1
0
        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();
        }
コード例 #2
0
 public ProcessDataGateway(ISccvDbContext sccvDbContext, IHistoricalDataGateway historicalSocialCareGateway)
 {
     _sccvDbContext         = sccvDbContext;
     _historicalDataGateway = historicalSocialCareGateway;
 }