예제 #1
0
        public void OneTimeTearDown()
        {
            AdminLoginPage ALoginPage = LoadAdminLoginPage();

            ALoginPage.ClickLoginButton();
            AdminHomePage adminHomePage = ALoginPage.LogInAdmin();

            adminHomePage.ClickSystemMenu();
            adminHomePage.ClickLocalizationMenu();
            adminHomePage.ClickTaxesMenu();
            TaxClassesPage taxClassesPage = adminHomePage.GoToTaxClassesPage();

            taxClassesPage = taxClassesPage.RemoveRuleFromTaxClass(TaxClassesRepository.GetTaxebleProductsTaxClass(), TaxRateRepository.GetFixTaxRate());
            taxClassesPage = taxClassesPage.RemoveRuleFromTaxClass(TaxClassesRepository.GetTaxebleProductsTaxClass(), TaxRateRepository.GetPercentageTaxRate());
            Thread.Sleep(3000);         // for presentation ONLY
            taxClassesPage.ClickSystemMenu();
            TaxRatesPage taxRatesPage = taxClassesPage.GoToTaxRatesPage();

            taxRatesPage = taxRatesPage.DeleteTaxRate(TaxRateRepository.GetFixTaxRate().Name);
            taxRatesPage = taxRatesPage.DeleteTaxRate(TaxRateRepository.GetPercentageTaxRate().Name);
            Thread.Sleep(3000);         // for presentation ONLY
            taxClassesPage.ClickSystemMenu();
            GeoZonesPage geoZonesPage = taxClassesPage.GoToGeoZonePage();

            geoZonesPage.DeleteGeoZone(GeoZonesRepository.GetUAGeoZone().Name);
            Thread.Sleep(1000);         // for presentation ONLY
        }