·dotnet-testing-fluentvalidation-testing
</>

dotnet-testing-fluentvalidation-testing

kevintsengtw/dotnet-testing-agent-skills

Il s'agit de FluentValidation. Le Validator est un outil de validation. Il s'agit de FluentValidation.TestHelper, de ShouldHaveValidationErrorFor.

15Installations·0Tendance·@kevintsengtw

Installation

$npx skills add https://github.com/kevintsengtw/dotnet-testing-agent-skills --skill dotnet-testing-fluentvalidation-testing

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() |

Il s'agit de FluentValidation. Le Validator est un outil de validation. Il s'agit de FluentValidation.TestHelper, de ShouldHaveValidationErrorFor. Source : kevintsengtw/dotnet-testing-agent-skills.

Voir l'original

Faits (prêts à citer)

Champs et commandes stables pour les citations IA/recherche.

Commande d'installation
npx skills add https://github.com/kevintsengtw/dotnet-testing-agent-skills --skill dotnet-testing-fluentvalidation-testing
Catégorie
</>Développement
Vérifié
Première apparition
2026-02-01
Mis à jour
2026-02-18

Réponses rapides

Qu'est-ce que dotnet-testing-fluentvalidation-testing ?

Il s'agit de FluentValidation. Le Validator est un outil de validation. Il s'agit de FluentValidation.TestHelper, de ShouldHaveValidationErrorFor. Source : kevintsengtw/dotnet-testing-agent-skills.

Comment installer dotnet-testing-fluentvalidation-testing ?

Ouvrez votre terminal ou outil de ligne de commande (Terminal, iTerm, Windows Terminal, etc.) Copiez et exécutez cette commande : npx skills add https://github.com/kevintsengtw/dotnet-testing-agent-skills --skill dotnet-testing-fluentvalidation-testing Une fois installé, le skill sera automatiquement configuré dans votre environnement de programmation IA et prêt à être utilisé dans Claude Code ou Cursor

Où se trouve le dépôt source ?

https://github.com/kevintsengtw/dotnet-testing-agent-skills