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); }
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); }
static partial void InstanceFactory(ref WorkItemCollectionWrapper instance, [CallerMemberName] string callerName = "");