Exemplo n.º 1
0
        public void GetBuildsTest()
        {
            IBuildFacade facade = new TFSBuildFacade();

            facade.LogIn(
                new RepositoryUser()
            {
                Name = "", Password = ""
            },
                new RepositoryInfo()
            {
                ProjectName = "VSBuildAddin", ServerUrl = new Uri("https://restcode.visualstudio.com")
            });

            var watch  = Stopwatch.StartNew();
            var builds = ((TFSBuildFacade)facade).GetBuildList();

            watch.Stop();
        }
Exemplo n.º 2
0
        public void GetBuildTreeReqTest()
        {
            IBuildFacade facade = new TFSBuildFacade();

            facade.LogIn(
                new RepositoryUser()
            {
                Name = "", Password = ""
            },
                new RepositoryInfo()
            {
                ProjectName = "VSBuildAddin", ServerUrl = new Uri("https://restcode.visualstudio.com")
            });


            var builds = ((TFSBuildFacade)facade).GetBuildList();

            var vm   = new BuildSkullVM();
            var tree = vm.GetBuildTree(builds);

            Assert.AreNotEqual(0, tree.Length);
        }