void MainWindow_Loaded(object sender, RoutedEventArgs e)
        {
            this.teamProjectCollection = new TfsTeamProjectCollection(new Uri(TeamProjectCollectionPath));
            this.teamProjectCollection.Authenticate();

            this.teamProjectCollection.EnsureAuthenticated();
            this.versionControl = this.teamProjectCollection.GetService<VersionControlServer>();
            this.sourceControlProxy = new TfsProxy(this.versionControl);
            this.infoProvider = new TestChangeCalculator(this.sourceControlProxy);
            this.identityService = this.teamProjectCollection.GetService<IIdentityManagementService>();

            //this.pickerFrom.SelectedValue = new DateTime(2012, 10, 19, 7, 0, 0);
            this.pickerFrom.SelectedValue = new DateTime(2012, 10, 18, 23, 0, 0);
            //this.pickerTo.SelectedValue = new DateTime(2012, 11, 28, 23, 0, 0);
            this.pickerTo.SelectedValue = DateTime.Now;// new DateTime(2012, 11, 10, 23, 0, 0);
            this.pathTextBox.Text = "$/WPF_Scrum/Development/Core/Data";

            this.testsPerGroupView.IdentityService = new TfsIdentityServiceProxy(this.identityService);

            var iden = this.testsPerGroupView.IdentityService.GetUserIdentities();
            iden = this.testsPerGroupView.IdentityService.GetUserIdentities();

            //2.Read the group represnting the root node
            var rootIdentity = this.identityService.ReadIdentity(IdentitySearchFactor.AccountName, @"[WPF_Scrum]\Contributors", MembershipQuery.Direct, ReadIdentityOptions.None);

            //3.Recursively parse the members of the group
            DisplayGroupTree(this.identityService, rootIdentity, 0);
        }
 public TestChangeCalculator(ISourceControlProxy sourceControlProxy)
 {
     this.sourceControlProxy = sourceControlProxy;
 }