implementing use cases

This commit is contained in:
daniel muniz
2024-06-05 21:18:36 -03:00
parent aca3a58b28
commit 48cdf694b5
3 changed files with 27 additions and 20 deletions

View File

@@ -1,10 +1,16 @@
const { GetCategoryUseCase } = require('./use-cases/get-category-use-case.js')
const categoriesMapping = require('../etc/categories-mapping.json')
const categoriesMapping = require('./etc/categories-mapping.json')
const { CategoryConverterUseCase } = require('./use-cases/category-converter-use-case.js')
const getCategoryUseCase = new GetCategoryUseCase();
(async () => {
const categoryId = await getCategoryUseCase.execute()
console.log(categoryId)
})()
const getCategoryUseCase = new GetCategoryUseCase({categoriesMapping})
// const categoryConverter = new CategoryConverterUseCase({ categoriesMapping })
getCategoryUseCase.execute('utorrent.com')