Hello @Mokarizadeh Shahab (SEBT) , Thank you for reaching out!
According to the documentation mentioned here to test the non-http triggered function app locally (except webhooks and Event Grid triggers) you can test your functions locally by calling an administration endpoint. Calling this endpoint with an HTTP POST request on the local server triggers the function.
For Event Hub triggered function could you refer to the implementation done here by kepalas. Please let me know if you run into any issues here.
Alternatively
You can also follow the documentation here to send events to Event Hub using code, but to achieve this you will have deploy a event hub instance on Azure.
Please let me know if there are any concerns. Thank you!