DDD-NoDuplicates icon indicating copy to clipboard operation
DDD-NoDuplicates copied to clipboard

fix the CatalogRepository in [Use an Aggregate with Double Dispatch] and its unit testing

Open u8989332 opened this issue 1 month ago • 0 comments

Hi When I run all testing in solution, I find the ProductUpdateNameTests of NoDuplicatesDesigns._08_AggregateWithDoubleDispatch can't pass UpdatesNameGivenNewUniqueName/ThrowsExceptionGivenDuplicateName testing.

The reason is CatalogRepository didn't create correct Product instances because of lost CatalogId.

Please review the modification, thanks.

u8989332 avatar May 12 '24 16:05 u8989332