test harness: abstracting import of BankService
This commit is contained in:
parent
32318a80f4
commit
1419751bfb
@ -607,7 +607,12 @@ export namespace BankApi {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export class BankService implements BankServiceInterface {
|
/**
|
||||||
|
* Method explained here:
|
||||||
|
* https://github.com/microsoft/TypeScript/issues/2552
|
||||||
|
*/
|
||||||
|
module BankServices {
|
||||||
|
export class PybankService implements BankServiceInterface {
|
||||||
proc: ProcessWrapper | undefined;
|
proc: ProcessWrapper | undefined;
|
||||||
|
|
||||||
static fromExistingConfig(gc: GlobalTestState): BankService {
|
static fromExistingConfig(gc: GlobalTestState): BankService {
|
||||||
@ -719,6 +724,9 @@ export class BankService implements BankServiceInterface {
|
|||||||
await pingProc(this.proc, url, "bank");
|
await pingProc(this.proc, url, "bank");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
import BankService = BankServices.PybankService;
|
||||||
|
export { BankService };
|
||||||
|
|
||||||
export class FakeBankService {
|
export class FakeBankService {
|
||||||
proc: ProcessWrapper | undefined;
|
proc: ProcessWrapper | undefined;
|
||||||
|
Loading…
Reference in New Issue
Block a user