Skip to content

Instantly share code, notes, and snippets.

@laugri
Created December 2, 2018 17:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save laugri/3a34852440690d817f68d1d6a885554d to your computer and use it in GitHub Desktop.
Save laugri/3a34852440690d817f68d1d6a885554d to your computer and use it in GitHub Desktop.
DDD example - Repository implementation
// 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