Skip to content

Commit

Permalink
Change use cases names
Browse files Browse the repository at this point in the history
  • Loading branch information
anagperal committed Oct 2, 2024
1 parent 4fad063 commit 0543d71
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/CompositionRoot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,16 @@ import { MapConfigD2Repository } from "./data/repositories/MapConfigD2Repository
import { MapConfigTestRepository } from "./data/repositories/test/MapConfigTestRepository";
import { GetMapConfigUseCase } from "./domain/usecases/GetMapConfigUseCase";
import { GetProvincesOrgUnits } from "./domain/usecases/GetProvincesOrgUnits";
import { GetAllOrgUnits } from "./domain/usecases/GetAllOrgUnits";
import { GetAllOrgUnitsUseCase } from "./domain/usecases/GetAllOrgUnitsUseCase";
import { PerformanceOverviewRepository } from "./domain/repositories/PerformanceOverviewRepository";
import { GetAllPerformanceOverviewMetricsUseCase } from "./domain/usecases/GetAllPerformanceOverviewMetricsUseCase";
import { PerformanceOverviewD2Repository } from "./data/repositories/PerformanceOverviewD2Repository";
import { PerformanceOverviewTestRepository } from "./data/repositories/test/PerformanceOverviewTestRepository";
import { GetTotalCardCountsUseCase } from "./domain/usecases/GetDiseasesTotalUseCase";
import { AlertSyncDataStoreRepository } from "./data/repositories/AlertSyncDataStoreRepository";
import { AlertSyncDataStoreTestRepository } from "./data/repositories/test/AlertSyncDataStoreTestRepository";
import { AlertSyncRepository } from "./domain/repositories/AlertSyncRepository";
import { DataStoreClient } from "./data/DataStoreClient";
import { GetTotalCardCountsUseCase } from "./domain/usecases/GetTotalCardCountsUseCase";

export type CompositionRoot = ReturnType<typeof getCompositionRoot>;

Expand Down Expand Up @@ -86,7 +86,7 @@ function getCompositionRoot(repositories: Repositories) {
getConfig: new GetMapConfigUseCase(repositories.mapConfigRepository),
},
orgUnits: {
getAll: new GetAllOrgUnits(repositories.orgUnitRepository),
getAll: new GetAllOrgUnitsUseCase(repositories.orgUnitRepository),
getProvinces: new GetProvincesOrgUnits(repositories.orgUnitRepository),
},
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { FutureData } from "../../data/api-futures";
import { OrgUnit } from "../entities/OrgUnit";
import { OrgUnitRepository } from "../repositories/OrgUnitRepository";

export class GetAllOrgUnits {
export class GetAllOrgUnitsUseCase {
constructor(private orgUnitRepository: OrgUnitRepository) {}

public execute(): FutureData<OrgUnit[]> {
Expand Down

0 comments on commit 0543d71

Please sign in to comment.