public InMemoryEFUserStoreTestWithGenerics(InMemoryDatabaseFixture fixture)
        {
            _fixture = fixture;

            var services = new ServiceCollection();

            services.AddHttpContextAccessor();
            services.AddDbContext <InMemoryContextWithGenerics>(
                options => options
                .UseSqlite(_fixture.Connection)
                .ConfigureWarnings(b => b.Log(CoreEventId.ManyServiceProvidersCreatedWarning)));
            _context = services.BuildServiceProvider().GetRequiredService <InMemoryContextWithGenerics>();

            _context.Database.EnsureCreated();
        }
예제 #2
0
 public InMemoryEFUserStoreTest(InMemoryDatabaseFixture fixture)
 {
     _fixture = fixture;
 }
예제 #3
0
 public InMemoryEFOnlyUsersTest(InMemoryDatabaseFixture fixture)
 {
     _fixture = fixture;
 }