-
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improved documentation stack and added additional Roslyn rules for co…
…mmon mistakes. Closes #40
- Loading branch information
1 parent
18f27bb
commit 22a0083
Showing
27 changed files
with
1,452 additions
and
240 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -196,4 +196,8 @@ public class CarRootSpec | |
|
||
... other tests | ||
} | ||
``` | ||
``` | ||
|
||
### Next Steps | ||
|
||
See |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Application Repository | ||
|
||
## Why? | ||
|
||
Description of a specific problem that you might have | ||
|
||
## What is the mechanism? | ||
|
||
Explanation of where we do this and how | ||
|
||
## Where to start? | ||
|
||
Steps to do it |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Aggregate Roots | ||
|
||
## Why? | ||
|
||
Description of a specific problem that you might have | ||
|
||
## What is the mechanism? | ||
|
||
Explanation of where we do this and how | ||
|
||
## Where to start? | ||
|
||
Steps to do it |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Entities | ||
|
||
## Why? | ||
|
||
Description of a specific problem that you might have | ||
|
||
## What is the mechanism? | ||
|
||
Explanation of where we do this and how | ||
|
||
## Where to start? | ||
|
||
Steps to do it |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# ValueObjects | ||
|
||
## Why? | ||
|
||
Description of a specific problem that you might have | ||
|
||
## What is the mechanism? | ||
|
||
Explanation of where we do this and how | ||
|
||
## Where to start? | ||
|
||
Steps to do it |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Application Services | ||
|
||
## Why? | ||
|
||
Description of a specific problem that you might have | ||
|
||
## What is the mechanism? | ||
|
||
Explanation of where we do this and how | ||
|
||
## Where to start? | ||
|
||
Steps to do it |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
src/Domain.Interfaces/ValueObjects/SkipImmutabilityCheckAttribute.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
namespace Domain.Interfaces.ValueObjects; | ||
|
||
/// <summary> | ||
/// Marks the method as being ignored by any immutability checks (performed by the Roslyn analyzers) | ||
/// Skips immutability checks performed on all methods of valueobjects to ensure immutability. | ||
/// Used for methods that have other utility, that definitely do not mutate the state of this instance | ||
/// </summary> | ||
[AttributeUsage(AttributeTargets.Method, Inherited = false)] | ||
public class SkipImmutabilityCheckAttribute : Attribute; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.