You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Both Pet and Order have their own status which is updated independently. That is, nothing enforces they correspond, like OrderStatus.Delivered implies PetStatus.Adopted.
Some ideas to reconcile:
status: PetStatus could be removed from Pet altogether.
OrderService could update the PetRepository as necessary, and other methods to update the PetStatus could be limited.
The text was updated successfully, but these errors were encountered:
(sort of a design issue...)
Both
Pet
andOrder
have their own status which is updated independently. That is, nothing enforces they correspond, likeOrderStatus.Delivered
impliesPetStatus.Adopted
.Some ideas to reconcile:
status: PetStatus
could be removed fromPet
altogether.OrderService
could update thePetRepository
as necessary, and other methods to update thePetStatus
could be limited.The text was updated successfully, but these errors were encountered: