public BuiltInDataTypesInMemoryFixture() { _testStore = new InMemoryTestStore(); _serviceProvider = new ServiceCollection() .AddEntityFramework() .AddInMemoryDatabase() .ServiceCollection() .AddSingleton(TestInMemoryModelSource.GetFactory(OnModelCreating)) .BuildServiceProvider(); var optionsBuilder = new DbContextOptionsBuilder(); optionsBuilder.UseInMemoryDatabase(); _options = optionsBuilder.Options; }