コード例 #1
0
 public void GivenMajorGivingPlanExists(Table plans)
 {
     foreach (var plan in plans.Rows)
     {
         BBCRMHomePage.OpenProspectsFA();
         ProspectsFunctionalArea.MajorGivingSetup();
         if (!MajorGivingSetupPanel.PlanOutlineExists(plan))
         {
             throw new Exception(String.Format("Major giving plan '{0}' does not exist.", plan.Values));
         }
     }
 }
コード例 #2
0
        public void ThenThePlanOutlineIsCreatedWithSteps(string planName, int numberOfSteps)
        {
            planName += uniqueStamp;

            var headers = new string[2];

            headers[0] = "Type";
            headers[1] = "Steps";
            var plans    = new Table(headers);
            var firstRow = new string[2];

            firstRow[0] = planName;
            firstRow[1] = numberOfSteps.ToString();
            plans.AddRow(firstRow);
            foreach (var plan in plans.Rows)
            {
                if (!MajorGivingSetupPanel.PlanOutlineExists(plan))
                {
                    throw new ArgumentException("Plan outline " + planName + " does not exist.");
                }
            }
        }
コード例 #3
0
        public void ThenThePlanOutlineIsCreatedWithSteps(string planName, int numberOfSteps)
        {
            planName += uniqueStamp;  //The unique stamp is a series of numbers added to the end to keep names distinctive
            // add the plan with the various steps below
            var headers = new string[2];

            headers[0] = "Type";
            headers[1] = "Steps";
            var plans    = new Table(headers);
            var firstRow = new string[2];

            firstRow[0] = planName;
            firstRow[1] = numberOfSteps.ToString();
            plans.AddRow(firstRow);
            foreach (var plan in plans.Rows)
            {
                if (!MajorGivingSetupPanel.PlanOutlineExists(plan))
                {
                    throw new ArgumentException("Plan outline " + planName + " does not exist.");
                }
            }
        }