public static void ClassInitialize(TestContext context) { TestConfiguration.Initialize(); _options = TestConfiguration.GetOptions <AseOptions>().Value; if (_options.ConnectionString == null) { throw new ArgumentNullException("Connection string not specified. Set it with: dotnet user-secrets set \"AseOptions:ConnectionString\" \"value\" --id aseSecrets"); } _migrations = new PoorMansMigration(_options); _migrations.Up(); }
public static void ClassInitialize(TestContext context) { TestConfiguration.Initialize(); _options = TestConfiguration.GetOptions <AseOptions>().Value; }