Returns true if type and id match those of resource
resource
identifies(Resource resource) => type == resource.type && id == resource.id;