public MainHub(IUserConnectionStorage userConnectionStorage, PhoneService phoneService, IUnitOfWork unitOfWork, IEmailIgnoreNotifierManger emailIgnoreNotifierManger) { _userConnectionStorage = userConnectionStorage.ValidateNotDefault(nameof(userConnectionStorage)); _phoneService = phoneService.ValidateNotDefault(nameof(phoneService)); _unitOfWork = unitOfWork.ValidateNotDefault(nameof(unitOfWork)); _emailIgnoreNotifierManger = emailIgnoreNotifierManger.ValidateNotDefault(nameof(emailIgnoreNotifierManger)); }
public AccountController( IUserManager userManager, IEncryptionService encryptionService, IUserConnectionStorage userConnectionStorage, IEmailIgnoreNotifierManger emailIgnoreNotifier, IUnitOfWork unitOfWork) : base(unitOfWork) { _emailIgnoreNotifier = emailIgnoreNotifier; _userManager = userManager.ValidateNotDefault(nameof(userManager)); _encryptionService = encryptionService.ValidateNotDefault(nameof(encryptionService)); _userConnectionStorage = userConnectionStorage.ValidateNotDefault(nameof(userConnectionStorage)); }
public PhoneController(IUnitOfWork unitOfWork, IUserConnectionStorage userConnectionStorage) : base(unitOfWork) { _userConnectionStorage = userConnectionStorage.ValidateNotDefault(nameof(userConnectionStorage)); }