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();
    }
Exemplo n.º 2
0
 public InMemoryEFOnlyUsersTest(InMemoryDatabaseFixture fixture)
 {
     _fixture = fixture;
 }
Exemplo n.º 3
0
 public InMemoryEFUserStoreTest(InMemoryDatabaseFixture fixture)
 {
     _fixture = fixture;
 }