Name |
Description |
AuthenticationService |
|
BadFeed |
|
Check |
Una clase que ayuda a controlar precondiciones, postcondiciones e invariantes levantando excepciones si no se cumplen las afirmaciones correspondientes. |
Check.InvariantException |
La excepción levantada si no se cumple una invariante. |
Check.PostconditionException |
La excepción levantada si no se cumple una postcondición. Esta excepción es levantada en los métodos Check.Postcondition(bool) y Check.Postcondition(bool, string) |
ExampleController |
|
ExceptionFilterSample |
|
ExceptionImplementation |
不正な入力に対して例外を出す実装。 |
IgnoreErrorImplementation |
不正な文字列とか気にせず、変な値が返ってくるのを許容する実装。 利用者側が気を付けて使ってられる範囲なら案外ありな実装。 大規模化・汎用化してきたらはまる。 |
NotFound |
|
NotUpdated |
|
Program |
|
ReturnCodeImplementation |
エラーがあるときには特定の値を返すような実装。 この場合、「戻り値は必ず正」という縛りの中だから、-1 とかを使える。 この他、「int? 型にしておいて、不正な入力の場合には null を返す」とかもよくやる。 |
SensitiveClass |
Assume class work with very Sensitive data So, it implement very strict rules to deal with other classes. Other classes bound to send it the compatible data only. |
Throw |
|
When_authenticating_a_user_without_providing_a_password |
|