internal static IPendingCheckin CreatePendingCheckin(List <ShimWorkItem> items, List <PendingChange> changes)
        {
            var checkin = new StubIPendingCheckin()
            {
                WorkItemsGet = () => new StubIPendingCheckinWorkItems()
                {
                    CheckedWorkItemsGet = () =>
                    {
                        var list = new List <WorkItemCheckinInfo>();
                        items.Where(i => i != null).ToList().ForEach(i =>
                        {
                            list.Add(new WorkItemCheckinInfo(i, WorkItemCheckinAction.Associate));
                        });
                        return(list.ToArray());
                    }
                },
                PendingChangesGet = () => new StubIPendingCheckinPendingChanges()
                {
                    CheckedPendingChangesGet = () => changes.ToArray(),
                    WorkspaceGet             = () => new ShimWorkspace()
                    {
                        OwnerDisplayNameGet = () => "Bob"
                    }
                }
            };

            return(checkin);
        }
		internal static IPendingCheckin CreatePendingCheckin(List<ShimWorkItem> items, List<PendingChange> changes)
		{
			var checkin = new StubIPendingCheckin()
			{
				WorkItemsGet = () => new StubIPendingCheckinWorkItems()
				{
					CheckedWorkItemsGet = () =>
					{
						var list = new List<WorkItemCheckinInfo>();
						items.Where(i => i != null).ToList().ForEach(i =>
							{
								list.Add(new WorkItemCheckinInfo(i, WorkItemCheckinAction.Associate));
							});
						return list.ToArray();
					}
				},
				PendingChangesGet = () => new StubIPendingCheckinPendingChanges()
				{
					CheckedPendingChangesGet = () => changes.ToArray(),
					WorkspaceGet = () => new ShimWorkspace()
					{
						OwnerDisplayNameGet = () => "Bob"
					}
				}
			};
			return checkin;
		}