/// <summary>
        /// Sets up all needed repositories and purges all related tables.
        /// </summary>
        public MaterialBatchRepositoryTests()
        {
            IConfiguration configuration = ConfigurationProvider.GetConfiguration();

            Repository          = new PostgreSqlMaterialBatchRepository(configuration);
            LocationsRepository = new PostgreSqlLocationsRepository(configuration);
            MaterialsRepository = new PostgreSqlMaterialsRepository(configuration);
            PlasticsRepository  = new PostgreSqlPlasticsRepository(configuration);
            PropRepository      = new PostgreSqlCustomBatchPropRepository(configuration);
            Dispose();
        }
Beispiel #2
0
        /// <summary>
        /// Sets up all needed repositories and purges all related DB tables.
        /// </summary>
        public TransactionRepositoryTests()
        {
            IConfiguration configuration = ConfigurationProvider.GetConfiguration();

            Repository          = new PostgreSqlTransactionRepository(configuration);
            BatchRepository     = new PostgreSqlMaterialBatchRepository(configuration);
            LocationsRepository = new PostgreSqlLocationsRepository(configuration);
            MaterialsRepository = new PostgreSqlMaterialsRepository(configuration);
            PlasticsRepository  = new PostgreSqlPlasticsRepository(configuration);
            UserRepository      = new PostgreSqlUserRepository(configuration);
            Dispose();
        }