public SelectBranchPlan(TeamExplorerIntegrator te, IPlanCatalog branchPlanCatalog)
        {
            this.InitializeComponent();

            this.vm = new ViewModels.SelectBranchPlanViewModel();
            this.vm.Load(te, branchPlanCatalog, ActionExecutionEngineFactory.CreateActionExecutionEngine());
            this.DataContext = this.vm;
        }
 public void Load(ITeamExplorerIntegrator te, IPlanCatalog branchPlanCatalog, IActionExecutionEngine engine)
 {
     this.teamExplorer = te;
     this.planCatalog = branchPlanCatalog;
     this.SelectedBranchPlan = this.BranchPlans.First();
     this.actionEngine = engine;
 }
 /// <summary>
 /// Initializes a new instance of the BranchPlanBaseCommand class. For test purpose - to be able to inject a fake IActionExecutionEngine
 /// </summary>
 /// <param name="iacEngine">injected ActionExecutionEngine</param>
 public BranchPlanBaseCommand(IActionExecutionEngine iacEngine, IPlanCatalog fakeplan)
 {
     this.actionExecutionEngine = iacEngine;
     this.planCatalog = fakeplan;
     this.validOperations = this.GetValidOperations();
 }