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()); }
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); }
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()); }