Cooking them in the oven for 45 minutes will cook them thoroughly. You want to make sure the internal temp is 160F. When fully cooked the brats may still look slightly pink inside, that's ok.