blob: 1bb7f58fbd765a9e1038192282219af5f1d6f242 [file]
/*
******************************************************************************
* 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 { MessageService } from '../services/message.service';
import { AbstractMockObservableService } from './abstract-mock-observable.service';
export class MockBaseHttpService extends AbstractMockObservableService implements BaseHttpServiceInterface {
public lastHttpCallInfo: HttpCallInfo;
public lastSessionContext: SessionContext;
constructor(protected messageService: MessageService) {
super();
}
public callService(callInfo: HttpCallInfo, sessionContext: SessionContext) {
this.lastHttpCallInfo = callInfo;
this.lastSessionContext = sessionContext;
return this;
}
}