func (s *workItemLinkCategorySuite) TestUpdateWorkItemLinkCategoryBadRequestDueToVersionConflictError() {
	_, linkCatSystem := s.createWorkItemLinkCategorySystem()
	require.NotNil(s.T(), linkCatSystem)

	updatePayload := &app.UpdateWorkItemLinkCategoryPayload{
		Data: linkCatSystem.Data,
	}
	newVersion := *linkCatSystem.Data.Attributes.Version + 42 // This will cause a version conflict error
	updatePayload.Data.Attributes.Version = &newVersion
	test.UpdateWorkItemLinkCategoryBadRequest(s.T(), nil, nil, s.linkCatCtrl, *linkCatSystem.Data.ID, updatePayload)
}
func (s *workItemLinkCategorySuite) UpdateWorkItemLinkCategoryBadRequestDueToEmptyName() {
	name := "" // When updating the name, it must not be empty
	id := "88727441-4a21-4b35-aabe-007f8273cd19"
	payload := &app.UpdateWorkItemLinkCategoryPayload{
		Data: &app.WorkItemLinkCategoryData{
			ID:   &id,
			Type: link.EndpointWorkItemLinkCategories,
			Attributes: &app.WorkItemLinkCategoryAttributes{
				Name: &name,
			},
		},
	}
	test.UpdateWorkItemLinkCategoryBadRequest(s.T(), nil, nil, s.linkCatCtrl, *payload.Data.ID, payload)
}
func (s *workItemLinkCategorySuite) UpdateWorkItemLinkCategoryBadRequestDueToBadType() {
	description := "New description for work item link category."
	id := "88727441-4a21-4b35-aabe-007f8273cd19"
	payload := &app.UpdateWorkItemLinkCategoryPayload{
		Data: &app.WorkItemLinkCategoryData{
			ID:   &id,
			Type: "something that is not workitemlinkcategories", // this will cause a BadParameter error
			Attributes: &app.WorkItemLinkCategoryAttributes{
				Description: &description,
			},
		},
	}
	test.UpdateWorkItemLinkCategoryBadRequest(s.T(), nil, nil, s.linkCatCtrl, *payload.Data.ID, payload)
}