Exemplo n.º 1
0
        public WorkItemController(
			ProjectService projectService,
			WorkItemService workItemService)
        {
            ProjectService = projectService;
            WorkItemService = workItemService;
        }
Exemplo n.º 2
0
        public void CanQueryByIteration()
        {
            var config = new TeamBoard.Infrastructure.Configuration();
            config.TeamFoundationServerName = "https://tfs06.codeplex.com:443";
            config.Login = ConfigurationManager.AppSettings["tfsUserName"];
            config.Password = ConfigurationManager.AppSettings["tfsPassword"];
            config.Domain = "snd";
            config.WorkItemMappings = new Dictionary<string, Dictionary<string, string>>();
            config.WorkItemMappings.Add("teamboard", new Dictionary<string, string>(){
                        {"Id","System.Id"},
                        {"Summary", "System.Title"},
                        {"Description", "System.Description"},
                        {"Priority", "CodePlex.Custom"}
                    });
            var projectService = new WorkItemService(config);

            var list = projectService.GetWorkItems("teamboard", "teamboard");
            Assert.Equal(true, list.Any());
        }