public BuildSkullControl()
        {
            InitializeComponent();
            App.Dispatcher = Dispatcher;
            Loaded        += OnLoaded;

            var vm = new BuildSkullVM();

            vm.CurrentBuildFacade = new TFS.TFSBuildFacade();
            vm.Initialize();
            DataContext = vm;
        }
Esempio 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);
        }