Esempio n. 1
0
 public ExplorerRecService(
     IWindowChecker windowChecker,
     IWindowGetter windowGetter,
     IAutomationRegister automationRegister,
     IDbCommander dbCommander,
     IGeneralSetting setting)
 {
     _windowChecker      = windowChecker ?? throw new ArgumentNullException(nameof(windowChecker));
     _windowGetter       = windowGetter ?? throw new ArgumentNullException(nameof(windowGetter));
     _automationRegister = automationRegister ?? throw new ArgumentNullException(nameof(automationRegister));
     _dbCommander        = dbCommander ?? throw new ArgumentNullException(nameof(dbCommander));
     _setting            = setting ?? throw new ArgumentNullException(nameof(setting));
 }
Esempio n. 2
0
 public NotifyService(
     IWindowChecker windowChecker,
     IWindowGetter windowGetter,
     IAutomationRegister automationRegister,
     IDbCommander dbCommander,
     IHotKeyNotifier hotKeyNotifier,
     IGeneralSetting setting)
 {
     _windowChecker      = windowChecker ?? throw new ArgumentNullException(nameof(windowChecker));
     _windowGetter       = windowGetter ?? throw new ArgumentNullException(nameof(windowGetter));
     _automationRegister = automationRegister ?? throw new ArgumentNullException(nameof(automationRegister));
     _dbCommander        = dbCommander ?? throw new ArgumentNullException(nameof(dbCommander));
     _hotKeyNotifier     = hotKeyNotifier ?? throw new ArgumentNullException(nameof(hotKeyNotifier));
     _setting            = setting ?? throw new ArgumentNullException(nameof(setting));
 }
 public ReservationsRepository(IDbCommander _dbC)
 {
     dbCommander = _dbC;
 }
Esempio n. 4
0
 public MenuItemsRepository(IDbCommander _dbC)
 {
     dbCommander = _dbC;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ArticleRepository"/> class,
 /// injecting an instance of the IDbCommander using your IoC framework of
 /// choice.
 /// </summary>
 public ArticleRepository(IDbCommander commander)
 {
     _commander = commander;
 }
Esempio n. 6
0
 /// <summary>
 /// Creates a new instance of the repository, using DI
 /// to inject a dependency on <see cref="IDbCommander"/>
 /// </summary>
 /// <param name="commander"></param>
 public Repository(IDbCommander commander)
 {
     _commander = commander;
 }
Esempio n. 7
0
 public FacilitiesRepository(IDbCommander _dbC)
 {
     dbCommander = _dbC;
 }