import { Injectable } from '@angular/core' ; import { Observable , of , } from 'rxjs' ; import { DaffLoginInfo , DaffAuthToken , } from '@daffodil/auth' ; import { DaffLoginServiceInterface } from '@daffodil/auth/driver' ; import { DaffAuthTokenFactory } from '@daffodil/auth/testing' ; inheritdoc @ Injectable ( { providedIn : 'root' , } ) export class DaffTestingLoginService implements DaffLoginServiceInterface < DaffLoginInfo , DaffAuthToken > { constructor ( private factory ) { } login ( loginInfo ) { return of ( this . factory . create ( ) ) ; } logout ( ) { return of ( undefined ) ; } }