public CleanerTest()
        {
            var builder = new ConfigurationBuilder()
                          .SetBasePath(Directory.GetCurrentDirectory())
                          .AddJsonFile(StaticConst.SETTINGS_PATH);

            Configuration = builder.Build();

            client       = new BIAHostClient();
            birokrat     = new BirokratLogic();
            biroside     = new BirosideLogic();
            company_id   = Configuration.GetValue <string>("CustomerDatabase:company_id");
            company_year = Configuration.GetValue <string>("CustomerDatabase:company_year");
            user_id      = 5;
        }
Esempio n. 2
0
        public MetaTest()
        {
            var builder = new ConfigurationBuilder()
                          .SetBasePath(Directory.GetCurrentDirectory())
                          .AddJsonFile(StaticConst.SETTINGS_PATH);

            Configuration = builder.Build();

            // 2nd level objects
            client           = new BIAHostClient();
            customerDatabase = new BirokratLogic();
            biroside         = new BirosideLogic();
            creditsDatabase  = new BirocreditsLogic();
            pluginCacheLogic = new PluginCacheLogic();

            // configuration
            customer_company_id   = Configuration.GetValue <string>("CustomerDatabase:company_id");
            customer_company_year = Configuration.GetValue <string>("CustomerDatabase:company_year");
            options_company_year  = Configuration.GetValue <string>("CreditsDatabase:options_company_year");
            partner_company_year  = Configuration.GetValue <string>("CreditsDatabase:partner_company_year");
            partner_sifra         = Configuration.GetValue <string>("CreditsDatabase:partner_sifra");
        }