| /* |
| ****************************************************************************** |
| * 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; |
| } |
| } |