import { Observable , of } from 'rxjs' ; import { LoginContext } from './authentication.service' ; import { Credentials } from './credentials.service' ; export class MockAuthenticationService { credentials : Credentials | null = { username : 'test' , token : '123' } ; login ( context ) { return of ( { username : context . username , token : '123456' } ) ; } logout ( ) { this . credentials = null ; return of ( true ) ; } }