File tree Expand file tree Collapse file tree 4 files changed +4
-30
lines changed
Tests/Xer.DomainDriven.Tests Expand file tree Collapse file tree 4 files changed +4
-30
lines changed Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ public DomainEventStream AppendDomainEvent(IDomainEvent domainEventToAppend)
7171 throw new ArgumentNullException ( nameof ( domainEventToAppend ) ) ;
7272 }
7373
74- if ( ! AggregateRootId . Equals ( domainEventToAppend . AggregateRootId ) )
74+ if ( AggregateRootId != domainEventToAppend . AggregateRootId )
7575 {
7676 throw new InvalidOperationException ( "Cannot append domain event belonging to a different aggregate root." ) ;
7777 }
@@ -91,7 +91,7 @@ public DomainEventStream AppendDomainEventStream(IDomainEventStream streamToAppe
9191 throw new ArgumentNullException ( nameof ( streamToAppend ) ) ;
9292 }
9393
94- if ( ! AggregateRootId . Equals ( streamToAppend . AggregateRootId ) )
94+ if ( AggregateRootId != streamToAppend . AggregateRootId )
9595 {
9696 throw new InvalidOperationException ( "Cannot append domain events belonging to a different aggregate root." ) ;
9797 }
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ public class PublishingAggregateRootRepository<TAggregateRoot> : IAggregateRootR
1616 /// <param name="inner">Aggregate root repository to decorate.</param>
1717 /// <param name="domainEventPublisher">Domain event publisher.</param>
1818 public PublishingAggregateRootRepository ( IAggregateRootRepository < TAggregateRoot > inner ,
19- IDomainEventPublisher domainEventPublisher )
19+ IDomainEventPublisher domainEventPublisher )
2020 {
2121 _inner = inner ;
2222 _domainEventPublisher = domainEventPublisher ;
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -123,7 +123,7 @@ public void ShouldNotBeEqualIfValueObjectsMatchByValueButDifferentType()
123123 var valueObject1 = new TestValueObject ( "Test" , 123 ) ;
124124 var valueObject2 = new TestValueObjectSecond ( "Test" , 123 ) ;
125125
126- // Same ID , should be equal.
126+ // Same value , should be equal.
127127 valueObject1 . Should ( ) . NotBe ( valueObject2 ) ;
128128 }
129129 }
You can’t perform that action at this time.
0 commit comments