private void Delete_expected_region()
        {
            Report_Log_Instance("Step 03 : Delete expected region", Level.Root);

            Report_Log_Instance("Step 03.a : Open Region dialog", Level.Level01);
            HomePage.InstancePO.Base_Open_Dialog_By_Searching_Text(SearchMenu.Region);
            using (RegionPage Region = new RegionPage())
            {
                Report_Log_Instance("Step 03.a : Delete expected region", Level.Level02);
                var RegionTableObject = Region.RegionTable;
                RegionTableObject.Remove_row_in_table_by_pair_value($"{code},{RegionPage.COL_CODE}");

                using (var SystemMessage = new SystemMessagePage())
                {
                    SystemMessage.Accept_system_message();
                    SystemMessage.Base_wait_for_loading_page_completely();
                }

                var expectedMessage = "Operation completed successfully  [Message 200-48]";
                var actualMessage   = HomePage.InstancePO.MessageFooter.Get_attribute_title();
                VerifyHelper.AssertEqual(expectedMessage, actualMessage);

                RegionTableObject.Refresh_Data();
                VerifyHelper.AssertEqual(0, RegionTableObject.Get_number_rows_has_these_value($"{code},{RegionPage.COL_CODE}" +
                                                                                              $";{name},{ RegionPage.COL_NAME }" +
                                                                                              $";VN,{ RegionPage.COL_COUNTRY }"));
            }
        }
        private void Create_new_region()
        {
            Report_Log_Instance("Step 02 : Create new region", Level.Root);

            Report_Log_Instance("Step 02.a : Open Region dialog and input information", Level.Level01);
            HomePage.InstancePO.Base_Open_Dialog_By_Searching_Text(SearchMenu.Region);
            using (RegionPage Region = new RegionPage())
            {
                code = Params["code"] + Randoms.NumberF04;
                name = Params["name"] + Randoms.NumberF04;
                var RegionTableObject = Region.RegionTable;
                VerifyHelper.Equal2(0, RegionTableObject.Get_number_rows_has_these_value($"{code},{RegionPage.COL_CODE}" +
                                                                                         $";{name},{ RegionPage.COL_NAME }" +
                                                                                         $";VN,{ RegionPage.COL_COUNTRY }"));
                Region.CodeTextbox.Press_hot_key("Ctrl+A");
                Region.Code    = code;
                Region.Country = Params["country"];
                Region.Name    = name;

                Region.Base_Click_To_Button(PageBase.Button.Add);
                Region.Base_wait_for_loading_page_completely();
                RegionTableObject.Refresh_Data();

                VerifyHelper.Equal2(1, RegionTableObject.Get_number_rows_has_these_value($"{code},{RegionPage.COL_CODE}" +
                                                                                         $";{name},{ RegionPage.COL_NAME }" +
                                                                                         $";VN,{ RegionPage.COL_COUNTRY }"));

                Region.Finish_dialog();
            }
        }
        public string GetRegion()
        {
            CheckDriverExists();
            RegionPage regionPage = new RegionPage(driver);

            regionPage.goToPage();
            return(regionPage.getRegion());
        }
Esempio n. 4
0
        public string GetRegion()
        {
            RegionPage regionPage = new RegionPage(driver);

            regionPage.goToPage();

            return(regionPage.getRegion());
        }
Esempio n. 5
0
    public MonsterButton(RegionPage regionPage)
    {
        InitializeComponent();

        _regionPage = regionPage;

        CombatTimersHelper.SetupPoisonTimer();
        CombatTimersHelper.SetupAuraTimer();
        SpawnMonster();
    }