Dilepton Production in Transport Calculations and Coarse-Grained Dynamics