Establishing the X-ray source detection strategy for eROSITA with simulations