// TestCreateWorkItemLinkType tests if we can create the s.linkTypeName work item link type
TestCreateWorkItemLinkType tests if we can create the s.linkTypeName work item link type
// TestCreateWorkItemLinkType tests if we can create the s . linkTypeName work item link type
func (s *workItemLinkTypeSuite) TestCreateAndDeleteWorkItemLinkType() {
	createPayload := s.createDemoLinkType(s.linkTypeName)
	_, workItemLinkType := test.CreateWorkItemLinkTypeCreated(s.T(), s.svc.Context, s.svc, s.linkTypeCtrl, createPayload.Data.Relationships.Space.Data.ID.String(), createPayload)
	require.NotNil(s.T(), workItemLinkType)
	require.Len(s.T(), workItemLinkType.Included, 2, "The work item link type should include it's work item link category and space.")
	categoryData, ok := workItemLinkType.Included[0].(*app.WorkItemLinkCategoryData)
	require.True(s.T(), ok)
	require.Equal(s.T(), s.categoryName, *categoryData.Attributes.Name, "The work item link type's category should have the name 'test-user'.")
	spaceData, ok := workItemLinkType.Included[1].(*app.Space)
	require.True(s.T(), ok)
	require.Equal(s.T(), s.spaceName, *spaceData.Attributes.Name, "The work item link type's space should have the name 'test-space'.")
	_ = test.DeleteWorkItemLinkTypeOK(s.T(), s.svc.Context, s.svc, s.linkTypeCtrl, workItemLinkType.Data.Relationships.Space.Data.ID.String(), *workItemLinkType.Data.ID)
}
func ( s * workItemLinkTypeSuite ) TestCreateAndDeleteWorkItemLinkType ( ) { createPayload := s . createDemoLinkType ( s . linkTypeName ) _ , workItemLinkType := test . CreateWorkItemLinkTypeCreated ( s . T ( ) , s . svc . Context , s . svc , s . linkTypeCtrl , createPayload . Data . Relationships . Space . Data . ID . String ( ) , createPayload ) require . NotNil ( s . T ( ) , workItemLinkType ) require . Len ( s . T ( ) , workItemLinkType . Included , 2 , " " ) categoryData , ok := workItemLinkType . Included [ 0 ] . ( * app . WorkItemLinkCategoryData ) require . True ( s . T ( ) , ok ) require . Equal ( s . T ( ) , s . categoryName , * categoryData . Attributes . Name , " " ) spaceData , ok := workItemLinkType . Included [ 1 ] . ( * app . Space ) require . True ( s . T ( ) , ok ) require . Equal ( s . T ( ) , s . spaceName , * spaceData . Attributes . Name , " " ) _ = test . DeleteWorkItemLinkTypeOK ( s . T ( ) , s . svc . Context , s . svc , s . linkTypeCtrl , workItemLinkType . Data . Relationships . Space . Data . ID . String ( ) , * workItemLinkType . Data . ID ) }
TestCreateWorkItemLinkType tests if we can create the s.linkTypeName work item link type
TestCreateWorkItemLinkType tests if we can create the s . linkTypeName work item link type
// Check that the link category is included in the response in the "included" array // Check that the link category is included in the response in the "included" array