dotnet-testing-fluentvalidation-testing
✓Utilice FluentValidation para obtener más información. 當需要為 Validador 類別建立測試、驗證業務規則、測試錯誤訊息時使用. Utilice FluentValidation.TestHelper para solucionar problemas, debería tener un error de validación para, solucionar el problema.
SKILL.md
此技能專注於使用 FluentValidation.TestHelper 測試資料驗證邏輯,涵蓋基本驗證、複雜業務規則、非同步驗證和測試最佳實踐。
| TestValidate(model) | 執行同步驗證 | validator.TestValidate(request) | | TestValidateAsync(model) | 執行非同步驗證 | await validator.TestValidateAsync(request) |
| ShouldHaveValidationErrorFor(x => x.Property) | 斷言該屬性應該有錯誤 | result.ShouldHaveValidationErrorFor(x => x.Username) | | ShouldNotHaveValidationErrorFor(x => x.Property) | 斷言該屬性不應該有錯誤 | result.ShouldNotHaveValidationErrorFor(x => x.Email) | | ShouldNotHaveAnyValidationErrors() | 斷言整個物件沒有任何錯誤 | result.ShouldNotHaveAnyValidationErrors() |
Utilice FluentValidation para obtener más información. 當需要為 Validador 類別建立測試、驗證業務規則、測試錯誤訊息時使用. Utilice FluentValidation.TestHelper para solucionar problemas, debería tener un error de validación para, solucionar el problema. Fuente: kevintsengtw/dotnet-testing-agent-skills.
Datos (listos para citar)
Campos y comandos estables para citas de IA/búsqueda.
- Comando de instalación
npx skills add https://github.com/kevintsengtw/dotnet-testing-agent-skills --skill dotnet-testing-fluentvalidation-testing- Categoría
- </>Desarrollo
- Verificado
- ✓
- Primera vez visto
- 2026-02-01
- Actualizado
- 2026-02-18
Respuestas rápidas
¿Qué es dotnet-testing-fluentvalidation-testing?
Utilice FluentValidation para obtener más información. 當需要為 Validador 類別建立測試、驗證業務規則、測試錯誤訊息時使用. Utilice FluentValidation.TestHelper para solucionar problemas, debería tener un error de validación para, solucionar el problema. Fuente: kevintsengtw/dotnet-testing-agent-skills.
¿Cómo instalo dotnet-testing-fluentvalidation-testing?
Abre tu terminal o herramienta de línea de comandos (Terminal, iTerm, Windows Terminal, etc.) Copia y ejecuta este comando: npx skills add https://github.com/kevintsengtw/dotnet-testing-agent-skills --skill dotnet-testing-fluentvalidation-testing Una vez instalado, el skill se configurará automáticamente en tu entorno de programación con IA y estará listo para usar en Claude Code o Cursor
¿Dónde está el repositorio de origen?
https://github.com/kevintsengtw/dotnet-testing-agent-skills
Detalles
- Categoría
- </>Desarrollo
- Fuente
- skills.sh
- Primera vez visto
- 2026-02-01