Created
December 2, 2018 17:16
-
-
Save laugri/3a34852440690d817f68d1d6a885554d to your computer and use it in GitHub Desktop.
DDD example - Repository implementation
This file contains hidden or 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
// Repository implementation example | |
class InMemoryShoppingCartRepository implements ShoppingCartRepository { | |
findById(shoppingCartId: ShoppingCartId) { | |
// implementation | |
} | |
store(ShoppingCart: ShoppingCart): Promise<void> { | |
// implementation | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment