예제 #1
0
        internal static WorkItemCollectionWrapper GetInstance()
        {
            WorkItemCollection real = default(WorkItemCollection);

            RealInstanceFactory(ref real);
            var instance = (WorkItemCollectionWrapper)WorkItemCollectionWrapper.GetWrapper(real);

            InstanceFactory(ref instance);
            if (instance == null)
            {
                Assert.Inconclusive("Could not Create Test Instance");
            }
            return(instance);
        }
예제 #2
0
        public void ReadAllProperties_UnitTest()
        {
            CredentialsStore credentials = CredentialsProvider.Read(@"..\..\..\RestCredentials.xml");
            var uri = new Uri(credentials.VsoCollection);
            var tpc = new TfsTeamProjectCollection(uri);

            tpc.EnsureAuthenticated();
            var                 workItemStore = tpc.GetService <WorkItemStore>();
            const string        wiql          = "SELECT [System.Id], [System.WorkItemType], [System.Title], [System.AssignedTo], [System.State], [System.Tags] FROM WorkItems";
            WorkItemCollection  real          = workItemStore.Query(wiql);
            IWorkItemCollection instance      = WorkItemCollectionWrapper.GetWrapper(real);

            ReadAllProperties(typeof(IWorkItemCollection), instance);
        }
예제 #3
0
 static partial void InstanceFactory(ref WorkItemCollectionWrapper instance, [CallerMemberName] string callerName = "");