Ejemplo n.º 1
0
        public override void BeforeAll()
        {
            base.BeforeAll();
            //create vip level for a brand
            _dashboardPage = _driver.LoginToAdminWebsiteAsSuperAdmin();
            var vipLevelManagerPage = _dashboardPage.Menu.ClickVipLevelManagerMenuItem();
            var newVipLevelPage     = vipLevelManagerPage.OpenNewVipLevelForm();

            _vipLevelData = TestDataGenerator.CreateValidVipLevelData(DefaultLicensee, DefaultBrand, false);
            var submittedVipLevelForm = newVipLevelPage.Submit(_vipLevelData);

            submittedVipLevelForm.CloseTab("View VIP Level");

            //generate payment settings data
            var paymentSettingsData = TestDataGenerator.CreateValidPaymentSettingsData(
                DefaultLicensee,
                DefaultBrand,
                DefaultCurrency,
                DefaultPaymentMethod,
                paymentType: PaymentType.Withdraw.ToString(),
                vipLevel: _vipLevelData.Name,
                minAmountPerTrans: "10",
                maxAmountPerTrans: "200",
                maxAmountPerDay: "4000",
                maxTransactionsPerDay: "100",
                maxTransactionsPerWeek: "2000",
                maxTransactionsPerMonth: "10000"
                );

            //create payment settings
            _paymentSettingsPage    = submittedVipLevelForm.Menu.ClickPaymentSettingsMenuItem();
            _newPaymentSettingsForm = _paymentSettingsPage.OpenNewPaymentSettingsForm();
            _newPaymentSettingsForm.Submit(paymentSettingsData);
            _newPaymentSettingsForm.CloseTab("View Payment Settings");
        }
Ejemplo n.º 2
0
 public override void BeforeEach()
 {
     base.BeforeEach();
     _driver.Logout();
     _dashboardPage       = _driver.LoginToAdminWebsiteAsSuperAdmin();
     _paymentSettingsPage = _dashboardPage.Menu.ClickPaymentSettingsMenuItem();
 }
Ejemplo n.º 3
0
        public void Can_activate_deactive_payment_settings()
        {
            _paymentSettingsPage = _dashboardPage.Menu.ClickPaymentSettingsMenuItem();
            _paymentSettingsPage.Activate(DefaultBrand, DefaultCurrency, _vipLevelData.Name, "activate remark");
            var paymentSettingsStatus = _paymentSettingsPage.GetStatus(DefaultBrand, DefaultCurrency, _vipLevelData.Name);

            Assert.AreEqual("Active", paymentSettingsStatus);

            _paymentSettingsPage.Deactivate(DefaultBrand, DefaultCurrency, _vipLevelData.Name, "deactivate remark");
            // _driver.Navigate().Refresh();
            //_paymentSettingsPage = _dashboardPage.Menu.ClickPaymentSettingsMenuItem();
            paymentSettingsStatus = _paymentSettingsPage.GetStatus(DefaultBrand, DefaultCurrency, _vipLevelData.Name);
            Assert.AreEqual("Inactive", paymentSettingsStatus);
        }