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)); }
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; }
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; }
/// <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; }
public FacilitiesRepository(IDbCommander _dbC) { dbCommander = _dbC; }