libs/contact/state/testing/src/mock-contact-facade.ts
import { Injectable } from '@angular/core';
import { Action } from '@ngrx/store';
import { BehaviorSubject } from 'rxjs';
import { DaffContactFacadeInterface } from '@daffodil/contact/state';
import { DaffStateError } from '@daffodil/core/state';
/**
* @inheritdoc
*/
@Injectable({ providedIn: 'root' })
export class MockDaffContactFacade implements DaffContactFacadeInterface {
success$: BehaviorSubject<boolean> = new BehaviorSubject(false);
error$: BehaviorSubject<DaffStateError[]> = new BehaviorSubject([]);
loading$: BehaviorSubject<boolean> = new BehaviorSubject(false);
dispatch(action: Action) {};
}