コード例 #1
0
        public void InitializeTest()
        {
            this.container = new UnityContainer();

            this.mockWizardView = TestHelper.CreateAndRegisterMock <IWorkItemQueryAndLayoutPickerWizardView>(this.container);
            this.mockView       = TestHelper.CreateAndRegisterMock <IWorkItemQueryPickerWizardPageView>(this.container);
            this.mockProject    = TestHelper.CreateAndRegisterMock <ITeamProject>(this.container);
            this.mockProject.Setup(project => project.QueryRunner).Returns(new Mock <ITeamProjectQuery>().Object);

            this.sut = this.container.Resolve <WorkItemQueryPickerWizardPagePresenter>();
            this.sut.Initialise();
        }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="WorkItemQueryAndLayoutPickerWizardPresenter"/> class.
 /// </summary>
 /// <param name="projectDocument">The team project document used to store the query and layout.</param>
 /// <param name="wizardView">The wizard view.</param>
 /// <param name="queryPagePresenter">The presenter to use for the query picker page.</param>
 /// <param name="layoutPagePresenter">The presenter to use for the layout picker page.</param>
 public WorkItemQueryAndLayoutPickerWizardPresenter(ITeamProjectDocument projectDocument, IWorkItemQueryAndLayoutPickerWizardView wizardView, IWorkItemQueryPickerWizardPagePresenter queryPagePresenter, ILayoutPickerWizardPagePresenter layoutPagePresenter) : base(wizardView)
 {
     this.projectDocument     = projectDocument;
     this.queryPagePresenter  = queryPagePresenter;
     this.layoutPagePresenter = layoutPagePresenter;
 }