July 2019
Intermediate to advanced
410 pages
10h 32m
English
The IInventoryReadContext interface contains the operation to read the books, while IInventoryWriteContext contains the operations that modify the collection of books. The original IInventoryContext interface was created for convenience for when a class requires both dependency types.
With this refactor, some changes are required. First classes only requiring to read the collection of books have their constructor updated with the IInventoryReadContext interface, as illustrated in the GetInventoryCommand class:
internal class GetInventoryCommand : NonTerminatingCommand ...
Read now
Unlock full access