blob: e3dd0fe506bcfdb39629707b8d3e8190de7fb3ec [file] [log] [blame]
/*
******************************************************************************
* Copyright © 2018 PTA GmbH.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
*
* http://www.eclipse.org/legal/epl-v10.html
*
******************************************************************************
*/
import { SessionContext } from '../common/session-context';
import { BaseHttpServiceInterface, HttpCallInfo } from '../services/base-http.service';
import { AbstractMockObservableService } from './abstract-mock-observable.service';
export class MockBaseHttpService extends AbstractMockObservableService implements BaseHttpServiceInterface {
public lastHttpCallInfo: HttpCallInfo;
public lastSessionContext: SessionContext;
constructor() {
super();
}
public callService(callInfo: HttpCallInfo, sessionContext: SessionContext) {
this.lastHttpCallInfo = callInfo;
this.lastSessionContext = sessionContext;
return this;
}
}