Two men have made their first appearance at Teesside Crown Court for the attempted murder of a Hartlepool man after he suffered serious injuries following gunshot wounds.