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

前端 未结 11 788
被撕碎了的回忆
被撕碎了的回忆 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

    Use mock objects to create configurable, destructible versions of the real thing--in this case, the database.

提交回复
热议问题