Ejemplo n.º 1
0
        public void CanCallGetProjects()
        {
            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";
            var projectService = new ProjectService(config);

            var list = projectService.GetProjects();
            Assert.Equal(true, list.Any());
        }
Ejemplo n.º 2
0
        public override void Load()
        {
            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"}
                    });

            Bind<IConfiguration>().ToConstant(config);
        }
Ejemplo n.º 3
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());
        }