public KeyProvider(IInterceptKeys interceptKeysSource, IPasswordModeService passwordModeService, IDesktopLockEventService desktopLockEventService) { processes = new Dictionary <int, Process>(); this.interceptKeysSource = interceptKeysSource; this.passwordModeService = passwordModeService; this.desktopLockEventService = desktopLockEventService; }
public KeyProvider(IInterceptKeys interceptKeysSource, IPasswordModeService passwordModeService, IDesktopLockEventService desktopLockEventService) { processes = new Dictionary<int, Process>(); this.interceptKeysSource = interceptKeysSource; this.passwordModeService = passwordModeService; this.desktopLockEventService = desktopLockEventService; }
public KeyProviderTests() { passwordModeService = new PasswordModeService(); desktopLockEventService = Substitute.For <IDesktopLockEventService>(); desktopLockEventService.GetSessionSwitchStream().Returns(Observable.Never <SessionSwitchEventArgs>()); settingsProvider = Substitute.For <ISettingsProvider>(); }
public KeyProvider(IInterceptKeys interceptKeysSource, IPasswordModeService passwordModeService, IDesktopLockEventService desktopLockEventService, ISettingsProvider settingsProvider) { if (settingsProvider == null) { throw new ArgumentNullException(nameof(settingsProvider)); } this.interceptKeysSource = interceptKeysSource; this.passwordModeService = passwordModeService; this.desktopLockEventService = desktopLockEventService; settings = settingsProvider.GetSettings <PopupSettings>(); }
public KeyProvider(IObservable <InterceptKeyEventArgs> interceptKeysSource, IPasswordModeService passwordModeService) { processes = new Dictionary <int, Process>(); this.interceptKeysSource = interceptKeysSource; this.passwordModeService = passwordModeService; }
public KeyProviderTests() { passwordModeService = new PasswordModeService(); desktopLockEventService = Substitute.For<IDesktopLockEventService>(); desktopLockEventService.GetSessionSwitchStream().Returns(Observable.Never<SessionSwitchEventArgs>()); }
public KeyProvider(IObservable<InterceptKeyEventArgs> interceptKeysSource, IPasswordModeService passwordModeService) { processes = new Dictionary<int, Process>(); this.interceptKeysSource = interceptKeysSource; this.passwordModeService = passwordModeService; }
public KeyProviderTests() { passwordModeService = new PasswordModeService(); }