export class ViewSelectorMock implements Xrm . Controls . ViewSelector { private visible : boolean ; private currentView : Xrm . LookupValue ; constructor ( isVisible ) { this . visible = isVisible ; } public getCurrentView ( ) { return this . currentView ; } public setCurrentView ( viewSelectorItem ) { this . currentView = viewSelectorItem ; } public isVisible ( ) { return this . visible ; } }