import AbstractFactory from "./AbstractFactory" ; import OrderRepository from "./OrderRepository" ; import OrderRepositoryMemory from "./OrderRepositoryMemory" ; import ProductRepository from "./ProductRepository" ; import ProductRepositoryMemory from "./ProductRepositoryMemory" ; export default class RepositoryMemoryFactory implements AbstractFactory { createOrderRepository ( ) { return new OrderRepositoryMemory ( ) ; } createProductRepository ( ) { return new ProductRepositoryMemory ( ) ; } }