private IEnumerable <TInterface> GetWorkItemInfosHelper <TInterface, TWrapper, TInstance>( IEnumerable <string> workItems, TfsWorkItemCheckinAction checkinAction, Func <string, WorkItemCheckinAction, TInstance> func ) where TWrapper : class { return((from workItem in workItems select _bridge.Wrap <TWrapper, TInstance>( func(workItem, _bridge.Convert <WorkItemCheckinAction>(checkinAction)))) .Cast <TInterface>()); }
public IEnumerable<IWorkItemCheckinInfo> GetWorkItemInfos(IEnumerable<string> workItems, TfsWorkItemCheckinAction checkinAction) { throw new NotImplementedException(); }
public IEnumerable<IWorkItemCheckinInfo> GetWorkItemInfos(IEnumerable<string> workItems, TfsWorkItemCheckinAction checkinAction) { return workItems.Select(workItem => _bridge.Wrap(GetWorkItemInfo(workItem, _bridge.Convert(checkinAction)))); }
public IEnumerable <IWorkItemCheckedInfo> GetWorkItemCheckedInfos(IEnumerable <string> workItems, TfsWorkItemCheckinAction checkinAction) { throw new NotImplementedException(); }
public IEnumerable<IWorkItemCheckinInfo> GetWorkItemInfos(IEnumerable<string> workItems, TfsWorkItemCheckinAction checkinAction) { return workItems.Select(workItem => _bridge.Wrap<WrapperForWorkItemCheckinInfo, WorkItemCheckinInfo>(GetWorkItemInfo(workItem, _bridge.Convert<WorkItemCheckinAction>(checkinAction)))).Cast<IWorkItemCheckinInfo>(); }
public IEnumerable <IWorkItemCheckedInfo> GetWorkItemCheckedInfos(IEnumerable <string> workItems, TfsWorkItemCheckinAction checkinAction) { return (GetWorkItemInfosHelper <IWorkItemCheckedInfo, WrapperForWorkItemCheckedInfo, WorkItemCheckedInfo>( workItems, checkinAction, GetWorkItemCheckedInfo)); }
public WorkItemCheckinAction Convert(TfsWorkItemCheckinAction action) { return (WorkItemCheckinAction) (int) action; }