Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
export class InMemoryBasketRepository implements BasketRepository {
private _basket: Basket = new Basket()
getBasket(): Promise<Basket> {
return Promise.resolve(this._basket)
async save(basket: Basket): Promise<void> {
this._basket = basket
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment