Skip to content

Commit

Permalink
Add constructor to GeoNet class for dependency injection of services
Browse files Browse the repository at this point in the history
  • Loading branch information
carolinaisslaying committed Jan 22, 2025
1 parent d6ec734 commit 460d765
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/GeoNet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ export class GeoNet {
private intensityService: IntensityService;
private strongService: StrongService;

constructor(intensityService: IntensityService, strongService: StrongService) {
this.intensityService = intensityService;
this.strongService = strongService;
}

public async getIntensity(req: IntensityRequestUnion): Promise<IntensityResponse> {
return await this.intensityService.getIntensity(req);
}
Expand Down

0 comments on commit 460d765

Please sign in to comment.