Constraining Particle Physics models with Cosmology and Astrophysics : two different cases