示例#1
0
 public KeyProvider(IInterceptKeys interceptKeysSource, IPasswordModeService passwordModeService, IDesktopLockEventService desktopLockEventService)
 {
     processes = new Dictionary <int, Process>();
     this.interceptKeysSource     = interceptKeysSource;
     this.passwordModeService     = passwordModeService;
     this.desktopLockEventService = desktopLockEventService;
 }
示例#2
0
 public KeyProvider(IInterceptKeys interceptKeysSource, IPasswordModeService passwordModeService, IDesktopLockEventService desktopLockEventService)
 {
     processes = new Dictionary<int, Process>();
     this.interceptKeysSource = interceptKeysSource;
     this.passwordModeService = passwordModeService;
     this.desktopLockEventService = desktopLockEventService;
 }
示例#3
0
 public KeyProviderTests()
 {
     passwordModeService     = new PasswordModeService();
     desktopLockEventService = Substitute.For <IDesktopLockEventService>();
     desktopLockEventService.GetSessionSwitchStream().Returns(Observable.Never <SessionSwitchEventArgs>());
     settingsProvider = Substitute.For <ISettingsProvider>();
 }
示例#4
0
        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>();
        }
示例#5
0
 public KeyProvider(IObservable <InterceptKeyEventArgs> interceptKeysSource, IPasswordModeService passwordModeService)
 {
     processes = new Dictionary <int, Process>();
     this.interceptKeysSource = interceptKeysSource;
     this.passwordModeService = passwordModeService;
 }
示例#6
0
 public KeyProviderTests()
 {
     passwordModeService = new PasswordModeService();
     desktopLockEventService = Substitute.For<IDesktopLockEventService>();
     desktopLockEventService.GetSessionSwitchStream().Returns(Observable.Never<SessionSwitchEventArgs>());
 }
示例#7
0
 public KeyProvider(IObservable<InterceptKeyEventArgs> interceptKeysSource, IPasswordModeService passwordModeService)
 {
     processes = new Dictionary<int, Process>();
     this.interceptKeysSource = interceptKeysSource;
     this.passwordModeService = passwordModeService;
 }
示例#8
0
 public KeyProviderTests()
 {
     passwordModeService = new PasswordModeService();
 }
示例#9
0
 public KeyProviderTests()
 {
     passwordModeService = new PasswordModeService();
 }