示例#1
0
        internal static RegisteredLinkTypeCollectionWrapper GetInstance()
        {
            RegisteredLinkTypeCollection real = default(RegisteredLinkTypeCollection);

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

            InstanceFactory(ref instance);
            if (instance == null)
            {
                Assert.Inconclusive("Could not Create Test Instance");
            }
            return(instance);
        }
示例#2
0
        public static IEnumerable <RegisteredLinkType> MatchRegisteredLinkType(this WorkItemStore workItemStore, string linkTypeNamePattern)
        {
            WildcardPattern parsedNamePattern = new WildcardPattern(linkTypeNamePattern, WildcardOptions.Compiled | WildcardOptions.CultureInvariant | WildcardOptions.IgnoreCase);

            RegisteredLinkTypeCollection linkTypeCollection = workItemStore.RegisteredLinkTypes;

            foreach (RegisteredLinkType linkType in linkTypeCollection)
            {
                if (parsedNamePattern.IsMatch(linkType.Name))
                {
                    yield return(linkType);
                }
            }
        }
示例#3
0
 static partial void RealInstanceFactory(ref RegisteredLinkTypeCollection real, [CallerMemberName] string callerName = "");