public void VerifyEventCost(double eventCost, CustomFieldStatus? status)
        {
            string eventCostTRLocator = "//tr[@id='trEventCost']";
            string eventCostStatusLocator = eventCostTRLocator + "//font";
            string eventCostLocator = eventCostStatusLocator + "/following-sibling::table";

            if (status.HasValue)
            {
                VerifyTool.VerifyValue(
                    "(" + StringEnum.GetStringValue(status.Value) + ")",
                    UIUtil.DefaultProvider.GetText(eventCostStatusLocator, LocateBy.XPath),
                    "Event Cost Status: {0}");
            }

            VerifyTool.VerifyValue(
                "Cost: " + MoneyTool.FormatMoney(eventCost),
                UIUtil.DefaultProvider.GetText(eventCostLocator, LocateBy.XPath),
                "Event Cost: {0}");
        }
        public void VerifyCFParagraph(int cfId, string cfName, string expectedParagraph, CustomFieldStatus? status)
        {
            VerifyTool.VerifyValue(
                expectedParagraph,
                UIUtil.DefaultProvider.GetText(string.Format(CustomFieldResponseText, cfId.ToString()) + "/../following-sibling::tr//b", LocateBy.XPath),
                "CF paragraph item '" + cfName + "' text: {0}");

            this.VerifyCFStatus(cfId, cfName, status);
        }
 public void VerifyCFStatus(int cfId, string cfName, CustomFieldStatus? status)
 {
     if (status.HasValue)
     {
         VerifyTool.VerifyValue(
             "(" + StringEnum.GetStringValue(status) + ")",
             UIUtil.DefaultProvider.GetText(string.Format(CustomFieldResponseText, cfId.ToString()) + "/font", LocateBy.XPath),
             "CF item '" + cfName + "'status: {0}");
     }
 }
 public void VerifyCFMultiChoice(
     int cfId,
     string cfName,
     string expectedChoice,
     CustomFieldStatus? status,
     double expectedFee)
 {
     this.VerifyCFMultiChoice(cfId, cfName, expectedChoice, status);
     this.VerifyCFFee(cfId, cfName, expectedFee);
 }
        public void VerifyCFNumberTextDateTime(int cfId, string cfName, string expectedText, CustomFieldStatus? status)
        {
            VerifyTool.VerifyValue(
                expectedText,
                UIUtil.DefaultProvider.GetText(string.Format(CustomFieldResponseText, cfId.ToString()) + "/../td/b", LocateBy.XPath),
                "CF number/text/date/time item '" + cfName + "' text: {0}");

            this.VerifyCFStatus(cfId, cfName, status);
        }
 public void VerifyCFContribution(
     int cfId, 
     string cfName, 
     CustomFieldStatus? status, 
     double expectedFee)
 {
     this.VerifyCFStatus(cfId, cfName, status);
     this.VerifyCFFee(cfId, cfName, expectedFee);
 }
        public void VerifyCFMultiChoice(int cfId, string cfName, string expectedChoice, CustomFieldStatus? status)
        {
            VerifyTool.VerifyValue(
                expectedChoice,
                UIUtil.DefaultProvider.GetText(string.Format(CustomFieldResponseText, cfId.ToString()) + "/../following-sibling::tr//b", LocateBy.XPath),
                "CF multi-choice '" + cfName + "' choice: {0}");

            this.VerifyCFStatus(cfId, cfName, status);
        }
 public void VerifyCFCheckboxItem(
     int cfId, 
     string cfName, 
     bool check, 
     CustomFieldStatus? status, 
     double expectedFee)
 {
     this.VerifyCFCheckboxItem(cfId, cfName, check, status);
     this.VerifyCFFee(cfId, cfName, expectedFee);
 }
        public void VerifyCFCheckboxItem(int cfId, string cfName, bool check, CustomFieldStatus? status)
        {
            VerifyTool.VerifyValue(
                check,
                UIUtil.DefaultProvider.IsElementPresent(string.Format(CustomFieldResponseText, cfId.ToString()), LocateBy.XPath),
                "CF checkbox item '" + cfName + "' is present: {0}");

            this.VerifyCFStatus(cfId, cfName, status);
        }
 public void SetCheckboxCFItem(string cfName, bool check, string discountCode, PricingOption? pricingOption, CustomFieldStatus? customFieldStatus)
 {
     int checkboxId = this.GetCFItemID(cfName);
     this.SetCheckboxCFItem(checkboxId, check);
     this.TypeCFDiscountCode(checkboxId, discountCode);
     this.SetCFPricingSchedule(checkboxId, pricingOption);
     this.SelectCFStatus(checkboxId, customFieldStatus);
 }
 public void SelectCFStatus(string cfName, CustomFieldStatus? customFieldStatus)
 {
     this.SelectCFStatus(this.GetCFItemID(cfName), customFieldStatus);
 }
        public void SelectCFStatus(int cfId, CustomFieldStatus? customFieldStatus)
        {
            string customFieldStatusLocator = string.Format(CustomFieldStatusLocatorFormat, cfId.ToString());

            if (customFieldStatus.HasValue)
            {
                UIUtil.DefaultProvider.SelectWithText(customFieldStatusLocator, StringEnum.GetStringValue(customFieldStatus.Value), LocateBy.XPath);
            }
        }