import { Observable } from 'rxjs/Observable' ; import { BroadcastEvent } from '../../shared/models/broadcast-event' ; import { Injectable } from '@angular/core' ; import { Subscription } from 'rxjs/Subscription' ; @ Injectable ( ) export class MockBroadcastService { constructor ( ) { } broadcast < T > ( eventType , obj ? ) { } subscribe < T > ( eventType , callback , errorCallback ? , completedCallback ? ) { return null ; } broadcastEvent < T > ( eventType , obj ? ) { } getEvents < T > ( eventType ) { return null ; } setDirtyState ( reason ? ) { } clearDirtyState ( reason ? , all ? ) { } getDirtyState ( reason ? ) { } clearAllDirtyStates ( ) { } }