-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Integrate domain events into Domain (remaining modules) (#679)
* chore: Challenges: Make entities subclasses of Entity * chore: Devices: Make entities subclasses of Entity * chore: Correct namespace of DatawalletModifiedDomainEventHandler * chore: Correct namespace of DatawalletModifiedDomainEvent * chore: Devices: Integrate IdentityDeletionProcessStartedDomainEvent * chore: Devices: Integrate IdentityCreatedDomainEvent * chore: Devices: Integrate IdentityDeletionProcessStatusChangedDomainEvent * fix: Remove unused event bus parameter * chore: Integrate FileUploadedDomainEvent into domain * chore: Messages: Make entities subclasses of Entity * chore: Integrate MessageCreatedDomainEvent into domain * test: Messages: Add domain test for MessageCreatedDomainEvent * chore: Relationships: Make entities subclasses of Entity * chore: Relationships: Integrate RelationshipChangeCreatedDomainEvent into domain * chore: Relationships: Integrate RelationshipChangeCompletedDomainEvent into domain * chore: Relationships: Integrate RelationshipTemplateCreatedDomainEvent into domain * test: Relationships: Write domain tests and remove handler tests for the domain events * chore: Tokens: Make entities subclasses of Entity * chore: Tokens: Integrate TokenCreatedDomainEvent into domain * test: Tokens: Add domain test for TokenCreatedDomainEvent * fix: Fix formatting * fix: Make Test classes subclasses of AbstractTestsBase * chore: Add todos * chore: Rename test classes and tests * chore: Fix formatting * chore: Remove comments * chore: Use factory methods * chore: Don't use factory methods * fix: Fix "Start of week, last monday" bug * fix: Import missing dependency * chore: Remove event bus call from handler and tests * chore: Raise TierOfIdentityChangedDomainEvent automatically when changing the Tier Id * chore: Raise IdentityDeletionProcessStatusChangedDomainEvent automatically when changing status (wip) * fix: Remove double raises of TierOfIdentityChangedDomainEvent * chore: Rename CancelDeletionProcessTests class to CancelDeletionProcessAsOwnerTests * fix: Fix formatting * test: Add three unit tests for the ChangeTier method * test: StartOfWeek on Monday returns same day * test: Add test for successful path * chore: Unify test names * chore: Raise more IdentityDeletionProcessStatusChangedDomainEvents * chore: Rework TestDataGenerator, remove unused Factory method * fix: Use TierId property in constructor and rewrite null check * chore: Remove comments * fix: Implement custom save methods manually * chore: fix nullability warning in Identity.cs * test: refactor TestDataGenerator.cs * test: don't assert for NotThrow * test: dont use the word "triggers" in tests; use "raises" instead * chore: Remove commented out code, fix typo --------- Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> Co-authored-by: Daniel Silva <[email protected]> Co-authored-by: Timo Notheisen <[email protected]>
- Loading branch information
1 parent
91b765c
commit cf54c5f
Showing
79 changed files
with
696 additions
and
580 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
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
7 changes: 5 additions & 2 deletions
7
Modules/Challenges/src/Challenges.Domain/Entities/Challenge.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
8 changes: 2 additions & 6 deletions
8
...es.Infrastructure/Persistence/Database/Configurations/ChallengeEntityTypeConfiguration.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,12 +1,8 @@ | ||
using Backbone.BuildingBlocks.Infrastructure.Persistence.Database.EntityTypeConfigurations; | ||
using Backbone.Modules.Challenges.Domain.Entities; | ||
using Microsoft.EntityFrameworkCore; | ||
using Microsoft.EntityFrameworkCore.Metadata.Builders; | ||
|
||
namespace Backbone.Modules.Challenges.Infrastructure.Persistence.Database.Configurations; | ||
|
||
public class ChallengeEventEntityTypeConfiguration : IEntityTypeConfiguration<Challenge> | ||
public class ChallengeEventEntityTypeConfiguration : EntityEntityTypeConfiguration<Challenge> | ||
{ | ||
public void Configure(EntityTypeBuilder<Challenge> builder) | ||
{ | ||
} | ||
} |
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
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
Modules/Devices/src/Devices.Domain/Aggregates/PushNotifications/PnsRegistration.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
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.