コード例 #1
0
        public void Dispose()
        {
            var config      = new ConfigurationBuilder().AddJsonFile(@"appsettings.json").Build();
            var settings    = new NetCoreAppSettings(config);
            var serviceName = settings.GetString("Storage:SqlServerServiceName");

            SqlServerStorageBase.CleanupAllTests(serviceName);
        }
コード例 #2
0
        public SqlServerRepositorySpecSetup()
        {
            var config      = new ConfigurationBuilder().AddJsonFile(@"appsettings.json").Build();
            var settings    = new NetCoreAppSettings(config);
            var serviceName = settings.GetString("Storage:SqlServerServiceName");

            Repository = SqlServerRepository.FromSettings(NullRecorder.Instance, settings);
            SqlServerStorageBase.InitializeAllTests(serviceName, "TestDatabase");
        }
コード例 #3
0
        public static void InitializeAllTests(TestContext context)
        {
            InitializeAllTests();
            var          config       = new ConfigurationBuilder().AddJsonFile(@"appsettings.json").Build();
            var          settings     = new NetCoreAppSettings(config);
            var          serviceName  = settings.GetString("SqlServerServiceName");
            const string databaseName = "TestDatabase";

            repository = SqlServerRepository.FromSettings(settings, databaseName);
            SqlServerStorageBase.InitializeAllTests(context, serviceName, databaseName);
        }