func (s *workItemLinkSuite) TestShowWorkItemLinkOK() {
	createPayload := CreateWorkItemLink(s.bug1ID, s.bug2ID, s.bugBlockerLinkTypeID)
	_, workItemLink := test.CreateWorkItemLinkCreated(s.T(), s.svc.Context, s.svc, s.workItemLinkCtrl, createPayload)
	require.NotNil(s.T(), workItemLink)
	// Delete this work item link during cleanup
	s.deleteWorkItemLinks = append(s.deleteWorkItemLinks, *workItemLink.Data.ID)
	expected, err := ConvertLinkToModel(*workItemLink)
	require.Nil(s.T(), err)

	_, readIn := test.ShowWorkItemLinkOK(s.T(), s.svc.Context, s.svc, s.workItemLinkCtrl, *workItemLink.Data.ID)
	require.NotNil(s.T(), readIn)
	// Convert to model space and use equal function
	actual, err := ConvertLinkToModel(*readIn)
	require.Nil(s.T(), err)
	require.True(s.T(), expected.Equal(*actual))

	require.NotNil(s.T(), readIn.Data.Links, "The link MUST include a self link")
	require.NotEmpty(s.T(), readIn.Data.Links.Self, "The link MUST include a self link that's not empty")
}
// TestShowWorkItemLinkOK tests if we can fetch the "system" work item link
TestShowWorkItemLinkOK tests if we can fetch the "system" work item link
// TestShowWorkItemLinkOK tests if we can fetch the " system " work item link
func (s *workItemLinkSuite) TestShowWorkItemLinkOK() {
	createPayload := CreateWorkItemLink(s.bug1ID, s.bug2ID, s.bugBlockerLinkTypeID)
	_, workItemLink := test.CreateWorkItemLinkCreated(s.T(), s.svc.Context, s.svc, s.workItemLinkCtrl, createPayload)
	require.NotNil(s.T(), workItemLink)
	s.deleteWorkItemLinks = append(s.deleteWorkItemLinks, *workItemLink.Data.ID)
	expected, err := ConvertLinkToModel(*workItemLink)
	require.Nil(s.T(), err)
	_, readIn := test.ShowWorkItemLinkOK(s.T(), s.svc.Context, s.svc, s.workItemLinkCtrl, *workItemLink.Data.ID)
	require.NotNil(s.T(), readIn)
	actual, err := ConvertLinkToModel(*readIn)
	require.Nil(s.T(), err)
	require.True(s.T(), expected.Equal(*actual))
	require.NotNil(s.T(), readIn.Data.Links, "The link MUST include a self link")
	require.NotEmpty(s.T(), readIn.Data.Links.Self, "The link MUST include a self link that's not empty")
}
func ( s * workItemLinkSuite ) TestShowWorkItemLinkOK ( ) { createPayload := CreateWorkItemLink ( s . bug1ID , s . bug2ID , s . bugBlockerLinkTypeID ) _ , workItemLink := test . CreateWorkItemLinkCreated ( s . T ( ) , s . svc . Context , s . svc , s . workItemLinkCtrl , createPayload ) require . NotNil ( s . T ( ) , workItemLink ) s . deleteWorkItemLinks = append ( s . deleteWorkItemLinks , * workItemLink . Data . ID ) expected , err := ConvertLinkToModel ( * workItemLink ) require . Nil ( s . T ( ) , err ) _ , readIn := test . ShowWorkItemLinkOK ( s . T ( ) , s . svc . Context , s . svc , s . workItemLinkCtrl , * workItemLink . Data . ID ) require . NotNil ( s . T ( ) , readIn ) actual , err := ConvertLinkToModel ( * readIn ) require . Nil ( s . T ( ) , err ) require . True ( s . T ( ) , expected . Equal ( * actual ) ) require . NotNil ( s . T ( ) , readIn . Data . Links , " " ) require . NotEmpty ( s . T ( ) , readIn . Data . Links . Self , " " ) }
TestShowWorkItemLinkOK tests if we can fetch the "system" work item link
TestShowWorkItemLinkOK tests if we can fetch the " system " work item link
// Delete this work item link during cleanup // Convert to model space and use equal function