[CST-5535] Rename health-data.service

This commit is contained in:
Giuseppe Digilio
2022-05-16 16:46:33 +02:00
parent 0de3c2ed48
commit 80ff8a517c
3 changed files with 5 additions and 5 deletions

View File

@@ -7,7 +7,7 @@ import { NgbNavModule } from '@ng-bootstrap/ng-bootstrap';
import { TranslateLoader, TranslateModule } from '@ngx-translate/core'; import { TranslateLoader, TranslateModule } from '@ngx-translate/core';
import { HealthPageComponent } from './health-page.component'; import { HealthPageComponent } from './health-page.component';
import { HealthDataService } from './health-data.service'; import { HealthService } from './health.service';
import { HealthInfoResponseObj, HealthResponseObj } from '../shared/mocks/health-endpoint.mocks'; import { HealthInfoResponseObj, HealthResponseObj } from '../shared/mocks/health-endpoint.mocks';
import { RawRestResponse } from '../core/dspace-rest/raw-rest-response.model'; import { RawRestResponse } from '../core/dspace-rest/raw-rest-response.model';
import { TranslateLoaderMock } from '../shared/mocks/translate-loader.mock'; import { TranslateLoaderMock } from '../shared/mocks/translate-loader.mock';
@@ -47,7 +47,7 @@ describe('HealthPageComponent', () => {
], ],
declarations: [ HealthPageComponent ], declarations: [ HealthPageComponent ],
providers: [ providers: [
{ provide: HealthDataService, useValue: healthService } { provide: HealthService, useValue: healthService }
] ]
}) })
.compileComponents(); .compileComponents();

View File

@@ -3,7 +3,7 @@ import { Component, OnInit } from '@angular/core';
import { BehaviorSubject } from 'rxjs'; import { BehaviorSubject } from 'rxjs';
import { take } from 'rxjs/operators'; import { take } from 'rxjs/operators';
import { HealthDataService } from './health-data.service'; import { HealthService } from './health.service';
import { HealthInfoResponse, HealthResponse } from './models/health-component.model'; import { HealthInfoResponse, HealthResponse } from './models/health-component.model';
@Component({ @Component({
@@ -23,7 +23,7 @@ export class HealthPageComponent implements OnInit {
*/ */
healthResponse: BehaviorSubject<HealthResponse> = new BehaviorSubject<HealthResponse>(null); healthResponse: BehaviorSubject<HealthResponse> = new BehaviorSubject<HealthResponse>(null);
constructor(private healthDataService: HealthDataService) { constructor(private healthDataService: HealthService) {
} }
/** /**

View File

@@ -8,7 +8,7 @@ import { HALEndpointService } from '../core/shared/hal-endpoint.service';
@Injectable({ @Injectable({
providedIn: 'root' providedIn: 'root'
}) })
export class HealthDataService { export class HealthService {
constructor(protected halService: HALEndpointService, constructor(protected halService: HALEndpointService,
protected restService: DspaceRestService) { protected restService: DspaceRestService) {
} }