//END:addissues

//START:assignissue
        public ProjectWorkflow AssignIssueToUser(string issueTitle, String user)
        {
            HomePage homePage = _codeTrack.GotoHomePage();

            homePage.ProjectName = CurrentProject;
            IssuePage issuePage = homePage.ShowIssueWithTitle(issueTitle);
            IssueForm issueForm = issuePage.StartEdit();

            issueForm.AssignTo(user);
            issueForm.Submit();
            return(this);
        }
Esempio n. 2
0
        public static Page GetPage(ApplicationPages page)
        {
            Page result = null;

            using (_pageLocker.GetUpgradeableReadLock())
            {
                if (!_pages.ContainsKey(page))
                {
                    using (_pageLocker.GetWriteLock())
                    {
                        if (!_pages.ContainsKey(page))
                        {
                            switch (page)
                            {
                            case ApplicationPages.UserFormPage:
                                _pages[page] = (result = new UserFormPage {
                                    DataContext = new UserFormViewModel()
                                });
                                break;

                            case ApplicationPages.IssuePage:
                                _pages[page] = (result = new IssuePage {
                                    DataContext = new IssueViewModel()
                                });
                                break;

                            case ApplicationPages.TimeOverPage:
                                _pages[page] = (result = new TimeOverPage());
                                break;

                            case ApplicationPages.ResultPage:
                                _pages[page] = (result = new ResultPage {
                                    DataContext = new ResultViewModel()
                                });
                                break;
                            }
                        }
                    }
                }
                else
                {
                    result = _pages[page];
                }
            }

            return(result);
        }
Esempio n. 3
0
 public static void SortIssueTableBy(IBrowser browser)
 {
     IssuePage page  = new IssuePage(browser.Driver);
     Issue     issue = page.Table[1];
     //continue...
 }
Esempio n. 4
0
        public static Page GetPage(ApplicationPages page)
        {
            Page result = null;

            using (_pageLocker.GetUpgradeableReadLock())
            {
                if (!_pages.ContainsKey(page))
                {
                    using (_pageLocker.GetWriteLock())
                    {
                        if (!_pages.ContainsKey(page))
                        {
                            switch (page)
                            {
                            case ApplicationPages.IssueSet1Page:
                                _pages[page] = (result = new IssuePage {
                                    DataContext = new IssueViewModel(IssueSets.Set1)
                                });
                                break;

                            case ApplicationPages.IssueSet2Page:
                                _pages[page] = (result = new IssuePage {
                                    DataContext = new IssueViewModel(IssueSets.Set2)
                                });
                                break;

                            case ApplicationPages.IssueSet3Page:
                                _pages[page] = (result = new IssuePage {
                                    DataContext = new IssueViewModel(IssueSets.Set3)
                                });
                                break;

                            case ApplicationPages.IssueSet4Page:
                                _pages[page] = (result = new IssuePage {
                                    DataContext = new IssueViewModel(IssueSets.Set4)
                                });
                                break;

                            case ApplicationPages.IssueSet5Page:
                                _pages[page] = (result = new IssuePage {
                                    DataContext = new IssueViewModel(IssueSets.Set5)
                                });
                                break;

                            case ApplicationPages.IssueSet6Page:
                                _pages[page] = (result = new IssuePage {
                                    DataContext = new IssueViewModel(IssueSets.Set6)
                                });
                                break;

                            case ApplicationPages.IssueSet7Page:
                                _pages[page] = (result = new IssuePage {
                                    DataContext = new IssueViewModel(IssueSets.Set7)
                                });
                                break;

                            case ApplicationPages.SettingsPage:
                                _pages[page] = (result = new SettingsPage {
                                    DataContext = new SettingsViewModel()
                                });
                                break;
                            }
                        }
                    }
                }
                else
                {
                    result = _pages[page];
                }
            }

            return(result);
        }