How to simulate network failure for test purposes (in C#)?

前端 未结 11 789
被撕碎了的回忆
被撕碎了的回忆 2020-12-29 04:25

I\'m building what could be called the DAL for a new app. Unfortunately, network connectivity to the database is a real problem.

I\'d like to be able to temporarily

11条回答
  •  借酒劲吻你
    2020-12-29 05:30

    Try Toxiproxi, it can simulate network outage.

    They have REST API and even .NET Client API to change the network simulation programatically (from your test code) https://github.com/shopify/toxiproxy

提交回复
热议问题