public override InMemoryTestStore CreateTestStore()
 => InMemoryTestStore.GetOrCreateShared(DatabaseName, EnsureCreated);
예제 #2
0
 public override DbContext CreateContext(InMemoryTestStore testStore)
 => new FieldMappingContext(new DbContextOptionsBuilder()
                            .UseInMemoryDatabase(DatabaseName)
                            .UseInternalServiceProvider(_serviceProvider)
                            .ConfigureWarnings(w => w.Ignore(InMemoryEventId.TransactionIgnoredWarning))
                            .Options);
 public override DbContext CreateContext(InMemoryTestStore testStore)
 => new GraphUpdatesContext(new DbContextOptionsBuilder()
                            .UseInMemoryDatabase(nameof(GraphUpdatesInMemoryFixture))
                            .ConfigureWarnings(w => w.Ignore(InMemoryEventId.TransactionIgnoredWarning))
                            .UseInternalServiceProvider(_serviceProvider).Options);
예제 #4
0
 public override DbContext CreateContext(InMemoryTestStore testStore)
 => new FindContext(_options);