Skip to content

Commit

Permalink
Merge pull request #6 from tombrereton/tombrereton-patch-2
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
tombrereton authored Dec 3, 2024
2 parents 3b03232 + d63aea5 commit edc083c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ I want to have a starter template for building Dotnet Apis. Things that are impo
- Feature Folders

## Architectural Decision Records
- Have a thin endpoint/controller and move the logic into a handler/service class so it's (1) unit testable and (2) decoupled from the endpoint framework so it can moved around and called from elsewhere
- Have a thin endpoint/controller and move the logic into a handler/service class so it's (1) unit testable and (2) decoupled from the endpoint framework to ease with refactoring e.g. moving the handler to a `Core` or `Application` project.
- (Exploring) Use Result objects for control flow instead of exceptions. In common code paths like validation or business rules use Result.Failure() or Result.Success(); use Exceptions for situations like failed connection, out of memory, access array incorrectly

## Prerequisites

Expand Down

0 comments on commit edc083c

Please sign in to comment.