示例#1
0
        protected IntegrationTestBase(
            PostgresDockerContainerFixture fixture,
            WebApplicationFactory <Startup> factory)
        {
            Factory = factory;

            Factory = Factory.WithWebHostBuilder(builder =>
            {
                var db = fixture.CreateDatabaseAsync(CancellationToken.None).Result;

                builder.ConfigureTestServices(services =>
                {
                    services.AddSingleton(db);
                }).UseSetting("Postgres:ConnectionString", db.ConnectionString)
                .UseSerilog((ctx, conf) => conf.Filter.ByIncludingOnly(_ => false));
            });
        }
示例#2
0
 public PostgresGameListProviderTest(PostgresDockerContainerFixture fixture) : base(fixture)
 {
 }
 public GetGameIntegrationTest(
     PostgresDockerContainerFixture fixture,
     WebApplicationFactory <Startup> factory) : base(fixture, factory)
 {
 }
示例#4
0
 public ExchangeDeadCardIntegrationTest(
     PostgresDockerContainerFixture fixture,
     WebApplicationFactory <Startup> factory) : base(fixture, factory)
 {
 }
示例#5
0
 public PostgresGameStoreTest(PostgresDockerContainerFixture fixture) : base(fixture)
 {
 }