import { Subject } from "rxjs"; import { TouchService } from "../../src/viewer/TouchService"; import { MockCreator } from "./MockCreator"; import { MockCreatorBase } from "./MockCreatorBase"; export class TouchServiceMockCreator extends MockCreatorBase { public create(): TouchService { const mock: TouchService = new MockCreator().create(TouchService, "TouchService"); this._mockProperty(mock, "activate$", new Subject()); this._mockProperty(mock, "active$", new Subject()); this._mockProperty(mock, "doubleTap$", new Subject()); this._mockProperty(mock, "pinch$", new Subject()); this._mockProperty(mock, "pinchStart$", new Subject()); this._mockProperty(mock, "pinchEnd$", new Subject()); this._mockProperty(mock, "singleTouchDragStart$", new Subject()); this._mockProperty(mock, "singleTouchDrag$", new Subject()); this._mockProperty(mock, "singleTouchDragEnd$", new Subject()); this._mockProperty(mock, "touchEnd$", new Subject()); this._mockProperty(mock, "touchMove$", new Subject()); this._mockProperty(mock, "touchStart$", new Subject()); return mock; } }