Files
pos-system/docs/en/skills/testing-patterns.md
Ho Ngoc Hai 6996e12ff0 docs: Add comprehensive Agent Skills documentation in English and Vietnamese
- Introduced new documentation for Agent Skills, detailing best practices, code patterns, common pitfalls, and quick references across various categories such as Architecture, Data Access, Security, Error Handling, Testing, Infrastructure, Communication, and Documentation.
- The documentation is structured to facilitate easy navigation and understanding, supporting developers in implementing consistent patterns on the GoodGo Platform.
- Both English and Vietnamese versions are provided to ensure accessibility for a wider audience.
2026-01-14 12:05:26 +07:00

35 lines
1.3 KiB
Markdown

# Unit/Integration testing patterns cho
> **Skill**: `testing-patterns`
> **Compatibility**: .NET 10+, xUnit, NSubstitute, Testcontainers, Microsoft.AspNetCore.TestHost
## Overview
Unit/Integration testing patterns cho .NET microservices. Use for xUnit, NSubstitute, Testcontainers, và testing MediatR handlers.
## When to Use
Use this skill when:
- Writing unit tests for handlers / Viết unit tests cho handlers
- Testing controllers with mocked dependencies / Test controllers với dependencies giả lập
- Creating integration tests with database / Tạo integration tests với database
- Setting up functional tests with TestServer / Cài đặt functional tests với TestServer
- Mocking services với NSubstitute / Giả lập services với NSubstitute
## Quick Reference
For detailed patterns, code examples, and best practices, refer to the full skill documentation.
## Related Skills
See [Skills Index](./index.md) for related skills.
## Additional Resources
- **Full Skill Documentation**: [`...agent/skills/testing-patterns/SKILL.md`](../../.agent/skills/testing-patterns/SKILL.md)
- **Code Examples**: [`...agent/skills/testing-patterns/references/REFERENCE.md`](../../.agent/skills/testing-patterns/references/REFERENCE.md)
---
**Vietnamese Version**: [Tài liệu tiếng Việt](../../vi/skills/testing-patterns.md)