public void WhenIAddPlanOutlineToMajorGivingSetup(string planName, Table planSteps)
 {
     planName += uniqueStamp;
     BBCRMHomePage.OpenProspectsFA();
     ProspectsFunctionalArea.MajorGivingSetup();
     MajorGivingSetupPanel.AddPlanOutline(planName, planSteps);
 }
 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));
         }
     }
 }
 public void WhenIAddPlanOutlineToMajorGivingSetup(string planName, Table planSteps)
 {
     try
     {
         planName += uniqueStamp;                                   //The unique stamp is a series of numbers added to the end to keep names distinctive
         BBCRMHomePage.OpenProspectsFA();                           // open the prospect functional area
         ProspectsFunctionalArea.MajorGivingSetup();                // setup major giving
         MajorGivingSetupPanel.AddPlanOutline(planName, planSteps); // add a plan
     }
     catch (Exception ex)
     {
         throw new Exception("Error: could not add a plan outline to a major giving setup. " + ex.Message);
     }
 }
        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.");
                }
            }
        }
        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.");
                }
            }
        }