import { Injectable } from '@angular/core';
import {BaseService} from '../../../base/base-service';
import {HttpClient} from '@angular/common/http';
import {environment} from '../../../../../environments/environment';

@Injectable({
  providedIn: 'root'
})
export class ExcelAllTestService  extends BaseService  {
    requestUrl;

    constructor(
        public http: HttpClient
    ) {
        super('/tests/export/excel_all_test', http)
        super.fullUrl = `${environment.storeApi}/api/tests/export/excel_all_test`
    }


    getExcelReport(testing_information_code){
        this.requestUrl = `${this.fullUrl}/${testing_information_code}`;
        window.open(this.requestUrl);
        return this.requestUrl;
    }
}
