> This page is for SDK, version Legacy.
> For other versions, use one of these documentation indexes:
> - Current (default): https://buildwithfern.com/learn/sdks/current/llms.txt
> - Legacy: https://buildwithfern.com/learn/sdks/legacy/llms.txt

> For clean Markdown content of this page, append .md to this URL. For the complete documentation index, see https://buildwithfern.com/learn/llms.txt.

## 2.13.0

**`(feat):`** 为所有 SDK 客户端生成接口以启用依赖注入和单元测试模拟。

每个客户端类现在实现相应的接口：

* 根客户端实现 `I{ClientName}`（例如，`IAcmeClient`）
* 子包客户端实现 `I{SubpackageName}Client`（例如，`IUsersClient`）

这允许消费者：

* 使用依赖注入框架注入客户端接口
* 使用 Moq 或 NSubstitute 等库在单元测试中模拟客户端接口
* 遵循基于接口编程的 SOLID 原则