public PivotalNotifier(string tokenValue, int projectId) : this() { _projectId = projectId; var token = new Token(tokenValue); _pivotal = new PivotalTrackerFacade(token); _searcher = new Thread(Observer); _searcher.Start(); }
public void GetIterationsTest() { var pivotal = new PivotalTrackerFacade(new Token(Properties.Settings.Default.ApiKey)); var projects = pivotal.Projects().GetAll(); foreach(var p in projects) { var i = p.Iterations(); Assert.IsNotNull(i); var i2 = i.GetAll(); } }
public static async System.Threading.Tasks.Task ClassInitializeAsync(TestContext context) { Context = context; Pivotal = new PivotalTrackerFacade(new Token(Properties.Settings.Default.ApiKey)); Project = Properties.Settings.Default.TestProjectId > 0 ? (await Pivotal.Projects().GetAsync(Properties.Settings.Default.TestProjectId)).Item : await CreateNewProjectAsync("test" + DateTime.Now.Ticks.ToString()); Story = CreateNewStory("test story", StoryTypeEnum.Feature, "Story test"); //Uncomment to trace request in fiddler2 //System.Net.WebRequest.DefaultWebProxy = new WebProxy("localhost", 8888); }
public static void ClassInitialize(TestContext context) { Context = context; Pivotal = new PivotalTrackerFacade(new Token(Properties.Settings.Default.ApiKey)); Project = Properties.Settings.Default.TestProjectId > 0 ? Pivotal.Projects().Get(Properties.Settings.Default.TestProjectId).Item : CreateNewProject("test" + DateTime.Now.Ticks.ToString()); Story = CreateNewStory("test story", StoryTypeEnum.Feature, "Story test"); //Uncomment to trace request in fiddler2 //System.Net.WebRequest.DefaultWebProxy = new WebProxy("localhost", 8888); }
public void SetToken(string tokenValue) { var token = new Token(tokenValue); _pivotal = new PivotalTrackerFacade(token); }