static IntegrationTest() { var config = new ConfigurationBuilder() .AddEnvironmentVariables() .Build(); if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) { Console.WriteLine($"Running Local Tests for {typeof(TClass).Name}"); TestDatabaseProviders = new TheoryData <DbContextOptions <TDbContext> > { DatabaseProviderBuilder.BuildInMemory <TDbContext>(typeof(TClass).Name), DatabaseProviderBuilder.BuildSqlite <TDbContext>(typeof(TClass).Name), DatabaseProviderBuilder.BuildLocalDb <TDbContext>(typeof(TClass).Name) }; } else { TestDatabaseProviders = new TheoryData <DbContextOptions <TDbContext> > { DatabaseProviderBuilder.BuildInMemory <TDbContext>(typeof(TClass).Name), DatabaseProviderBuilder.BuildSqlite <TDbContext>(typeof(TClass).Name) }; Console.WriteLine("Skipping DB integration tests on non-Windows"); } }
static IntegrationTest() { var config = new ConfigurationBuilder() .AddEnvironmentVariables() .Build(); if (config.GetValue("APPVEYOR", false)) { Console.WriteLine($"Running AppVeyor Tests for {typeof(TClass).Name}"); TestDatabaseProviders = new TheoryData <DbContextOptions <TDbContext> > { DatabaseProviderBuilder.BuildInMemory <TDbContext>(typeof(TClass).Name), DatabaseProviderBuilder.BuildSqlite <TDbContext>(typeof(TClass).Name), DatabaseProviderBuilder.BuildAppVeyorSqlServer2016 <TDbContext>(typeof(TClass).Name), //DatabaseProviderBuilder.BuildAppVeyorMySql<TDbContext>(typeof(TClass).Name), //DatabaseProviderBuilder.BuildAppVeyorPostgreSql<TDbContext>(typeof(TClass).Name) }; } else { Console.WriteLine($"Running Local Tests for {typeof(TClass).Name}"); TestDatabaseProviders = new TheoryData <DbContextOptions <TDbContext> > { DatabaseProviderBuilder.BuildInMemory <TDbContext>(typeof(TClass).Name), DatabaseProviderBuilder.BuildSqlite <TDbContext>(typeof(TClass).Name), DatabaseProviderBuilder.BuildLocalDb <TDbContext>(typeof(TClass).Name) }; } }