Пример #1
0
        /// <summary>
        /// The log
        /// </summary>
        //private static readonly log4net.ILog log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
        /// <summary>
        /// Initializes a new instance of the <see cref="TestCaseExecutionArrangmentViewModel"/> class.
        /// </summary>
        public TestPlansEditViewModel()
        {
            this.ObservableTestPlans = new ObservableCollection <TestPlan>();
            ITestPlanCollection testPlanCores = TestPlanManager.GetAllTestPlans(ExecutionContext.TestManagementTeamProject);

            testPlanCores.ToList().ForEach(t => this.ObservableTestPlans.Add(new TestPlan(t)));
        }
Пример #2
0
 /// <summary>
 /// Gets the list of test plans under the selected project.
 /// </summary>
 public Task <List <ITestPlan> > GetTestPlans(Project currentProjectRef)
 {
     return(Task.Factory.StartNew(() =>
     {
         List <ITestPlan> planList = new List <ITestPlan>();
         this.Session.workingProject = Session.TestService.GetTeamProject(currentProjectRef.Name);
         ITestPlanCollection plans = Session.workingProject.TestPlans.Query("SELECT * FROM TestPlan Order By PlanName");
         return plans.ToList();
     }));
 }