コード例 #1
0
        static partial void RealInstanceFactory(ref CancelableAsyncResult real, string callerName)
        {
            var          store = WorkItemStoreWrapper_UnitTests.GetRealInstance();
            const string wiql  = "SELECT * FROM WorkItems WHERE [System.TeamProject] = 'RestPlaypen' ORDER BY [System.Id] ";
            var          query = new Query(store, wiql);

            real = (CancelableAsyncResult)query.BeginLinkQuery();
        }
コード例 #2
0
        static partial void RealInstanceFactory(ref WorkItemAsyncEventArgs real, string callerName)
        {
            CancelableAsyncResult car      = default(CancelableAsyncResult);
            CancelableActionState oldState = default(CancelableActionState);
            CancelableActionState newState = default(CancelableActionState);

            real = new WorkItemAsyncEventArgs(car, oldState, newState);
        }
        internal static CancelableAsyncResultWrapper GetInstance()
        {
            CancelableAsyncResult real = default(CancelableAsyncResult);

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

            InstanceFactory(ref instance);
            if (instance == null)
            {
                Assert.Inconclusive("Could not Create Test Instance");
            }
            return(instance);
        }
 static partial void RealInstanceFactory(ref CancelableAsyncResult real, [CallerMemberName] string callerName        = "");