-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
♻️ Make the Domain more intentional (#49)
- Loading branch information
Showing
18 changed files
with
22 additions
and
21 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
...ctureTemplate/Common/Models/BaseEntity.cs → ...ctureTemplate/Common/Domain/BaseEntity.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
1 change: 1 addition & 0 deletions
1
src/VerticalSliceArchitectureTemplate/Common/Persistence/EventPublisher.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
2 changes: 1 addition & 1 deletion
2
src/VerticalSliceArchitectureTemplate/Features/Todos/Commands/CompleteTodoCommand.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
2 changes: 1 addition & 1 deletion
2
src/VerticalSliceArchitectureTemplate/Features/Todos/Commands/CreateTodoCommand.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
2 changes: 1 addition & 1 deletion
2
src/VerticalSliceArchitectureTemplate/Features/Todos/Commands/DeleteTodoCommand.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
2 changes: 1 addition & 1 deletion
2
src/VerticalSliceArchitectureTemplate/Features/Todos/Commands/UpdateTodoCommand.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
3 changes: 3 additions & 0 deletions
3
src/VerticalSliceArchitectureTemplate/Features/Todos/Domain/Events/TodoCompletedEvent.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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
namespace VerticalSliceArchitectureTemplate.Features.Todos.Domain.Events; | ||
|
||
public record TodoCompletedEvent(Guid TodoId) : INotification; |
3 changes: 3 additions & 0 deletions
3
src/VerticalSliceArchitectureTemplate/Features/Todos/Domain/Events/TodoCreatedEvent.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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
namespace VerticalSliceArchitectureTemplate.Features.Todos.Domain.Events; | ||
|
||
public record TodoCreatedEvent(Guid TodoId) : INotification; |
5 changes: 3 additions & 2 deletions
5
...ureTemplate/Features/Todos/Models/Todo.cs → ...ureTemplate/Features/Todos/Domain/Todo.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
3 changes: 0 additions & 3 deletions
3
src/VerticalSliceArchitectureTemplate/Features/Todos/Events/TodoCompletedEvent.cs
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
src/VerticalSliceArchitectureTemplate/Features/Todos/Events/TodoCreatedEvent.cs
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
src/VerticalSliceArchitectureTemplate/Features/Todos/Persistence/TodoDbContext.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
2 changes: 1 addition & 1 deletion
2
src/VerticalSliceArchitectureTemplate/Features/Todos/Persistence/TodoEfConfiguration.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
2 changes: 1 addition & 1 deletion
2
src/VerticalSliceArchitectureTemplate/Features/Todos/Queries/GetAllTodosQuery.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
2 changes: 1 addition & 1 deletion
2
src/VerticalSliceArchitectureTemplate/Features/Todos/Queries/GetTodoQuery.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
2 changes: 1 addition & 1 deletion
2
src/VerticalSliceArchitectureTemplate/Features/Todos/WebApi/TodoEndpoints.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
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,6 +1,5 @@ | ||
global using Microsoft.EntityFrameworkCore; | ||
global using VerticalSliceArchitectureTemplate.Common.Exceptions; | ||
global using VerticalSliceArchitectureTemplate.Common.Features; | ||
global using VerticalSliceArchitectureTemplate.Common.Models; | ||
global using VerticalSliceArchitectureTemplate.Common.Persistence; | ||
global using MediatR; |
4 changes: 2 additions & 2 deletions
4
tests/VerticalSliceArchitectureTemplate.Unit.Tests/Features/Todos/Models/TodoTests.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