partial void SyncWorkItem_PreCondition(IWorkItem instance, ref IWorkItemSyncData syncData) { IWorkItemRowSets rowSets = new MockIWorkItemRowSets(); int dataVersions = instance.InternalVersion; WorkItem realWorkItem = WorkItemWrapper.GetInstance(instance); var realSyncData = new WorkItemSyncData(rowSets, dataVersions, realWorkItem); syncData = WorkItemSyncDataWrapper.GetWrapper(realSyncData); }
internal static WorkItemSyncDataWrapper GetInstance() { WorkItemSyncData real = default(WorkItemSyncData); RealInstanceFactory(ref real); var instance = (WorkItemSyncDataWrapper)WorkItemSyncDataWrapper.GetWrapper(real); InstanceFactory(ref instance); if (instance == null) { Assert.Inconclusive("Could not Create Test Instance"); } return(instance); }