public RegistrationController(ICustomerManagementService customerManagementService, IAddressManagementService addressManagementService, IMailService mailService) { _customerManagementService = customerManagementService; _addressManagementService = addressManagementService; _mailService = mailService; }
public EventController() { this.eventRepository = new EventRepository(); this.usersRepository = new UsersRepository(); mailService = new MailService(usersRepository); }
public ProfileController(IMailService mail) { _mail = mail; _mu = MembershipWrapper.GetUser(); if (_mu != null) _ua = new UserAccount(_mu.UserName); }
public UserService(IUserActionsDAO userActionDAO, AbstractUserMovieDAO userMovieRepo, IMoviesShowingService moviesService, IMailService mailService) { _userMovieRepo = userMovieRepo; _userActionDAO = userActionDAO; _moviesService = moviesService; _mailService = mailService; }
public AdminController(IDataService dataService, AuthorizationRoot authorizationRoot, IMailService mailService, ISocialService socialService) : base(dataService, authorizationRoot) { _dataService = dataService; _mailService = mailService; _socialService = socialService; }
public BusinessLogic(DALFactory dalFactory, IMailService ms, IPdfMaker pdf) { this.db = dalFactory.CreateDatabase(); this.dalFactory = dalFactory; this.ms = ms; this.pdf = pdf; }
public CatalogueController(IDataService dataService, ISocialService socialService, IMailService mailService, IConvertService convertService, AuthorizationRoot authorizationRoot) : base(dataService, authorizationRoot) { _socialService = socialService; _mailService = mailService; _convertService = convertService; }
public void SetUp() { this.mailService = A.Fake<IMailService>(); this.boxingService = A.Fake<IBoxingService>(); this.testee = new DeliveryService(this.mailService, this.boxingService); }
public ManageCourseController(ICourseService courseService, IEntityRepository entityRepository, IEmailGenerationService emailGenerationService, IMailService mailService) { _courseService = courseService; _entityRepository = entityRepository; _emailGenerationService = emailGenerationService; _mailService = mailService; }
public SendPaymentNotification( IClientsService clientsService, IMailService mailService) { this.clientsService = clientsService; this.mailService = mailService; }
public OrdersService(IOrdersRepository ordersRepository, IStorageItemsRepository storageItemsRepository, IClientsRepository clientsRepository, IMailService mailService) { _ordersRepository = ordersRepository; _storageItemsRepository = storageItemsRepository; _clientsRepository = clientsRepository; _mailService = mailService; }
public override void SetUp() { base.SetUp(); _repository = Substitute.For<Logic.Mail.Send.IRepository>(); _mailService = Substitute.For<IMailService>(); _sut = new Logic.Mail.Send.CommandHandler(_repository, _mailService); }
public DefaultTranslationService(IDataService dataService, ICacheService cacheService, IMailService mailService, IConfigurationService configurationService) { _dataService = dataService; _cacheService = cacheService; _mailService = mailService; _configurationService = configurationService; }
public void SetUp() { mailServiceMock = MockRepository.GenerateMock<IMailService>(); templateEngineMock = MockRepository.GenerateMock<ITemplateEngine>(); templateSourceMock = MockRepository.GenerateMock<ITemplateSource>(); listener = new SendMailPasswordResettedEventListener(mailServiceMock, templateEngineMock, templateSourceMock); }
public PaymentService( IGangsterBankUnitOfWork gangsterBankUnitOfWork, IMailService mailService) { Contract.Requires<ArgumentNullException>(gangsterBankUnitOfWork.IsNotNull()); this.gangsterBankUnitOfWork = gangsterBankUnitOfWork; this.mailService = mailService; }
public ClientsService( IGangsterBankUnitOfWork gangsterBankUnitOfWork, IMailService mailService) { Contract.Requires<ArgumentNullException>(gangsterBankUnitOfWork != null); this.gangsterBankUnitOfWork = gangsterBankUnitOfWork; this.mailService = mailService; }
public void SetUp() { mailServiceMock = MockRepository.GenerateMock<IMailService>(); templateEngineMock = MockRepository.GenerateMock<ITemplateEngine>(); templateSourceMock = MockRepository.GenerateMock<ITemplateSource>(); listener = new SendWelcomeEmailUserRegisteredEventListener(mailServiceMock, templateEngineMock, templateSourceMock); }
public RegistryManager(IGiftRepository giftRepository, ILoggingService loggingService,ICurrentUser currentUser, IUserRepository userRepository, IMailService mailService) { _giftRepository = giftRepository; _loggingService = loggingService; _currentUser = currentUser; _userRepository = userRepository; _mailService = mailService; }
public AdministrationHomeController(IDataService dataService, ICacheService cacheService, ITranslationService translationService, IMailService mailService, IConfigurationService configurationService) { _dataService = dataService; _cacheService = cacheService; _translationService = translationService; _mailService = mailService; _configurationService = configurationService; }
public UserService(IRepository<Utente> repo, IFormsAuthentication formsAuth, IAuditing auditing, IMailService mailService ) { _userRepo = repo; _formsAuth = formsAuth; _mailService = mailService; if ((_auditing = auditing) == null) throw new ArgumentNullException("auditing"); }
public void OnApplicationErrorWrapper(HttpContextBase httpContextWrapper, IMailService mailService) { string usr = httpContextWrapper.User != null ? httpContextWrapper.User.Identity.Name : "Unknown user"; mailService.PostSound(MessageSound.trombone); mailService.PostText(string.Format("User {0} experienced error!", usr)); mailService.PostText(string.Format("Exception: {0}", httpContextWrapper.Server.GetLastError().Message)); mailService.PostText(string.Format("URL: {0}", httpContextWrapper.Request.Url)); mailService.PostPaste(httpContextWrapper.Server.GetLastError().ToString()); }
public EmailMessageService(IConfigurationMessageService configurationService, IMessaggisticaService messaggisticaService, IDocumentService documentService, IMailService mailService, IFileTypeDetector fileTypeDetector, IDaoFactory daoFactory) { _documentService = documentService; _configurationService = configurationService; _messaggisticaService = messaggisticaService; _mailService = mailService; _fileTypeDetector = fileTypeDetector; _daoFactory = daoFactory; }
public AppController(IMailService mailService, IConfigurationRoot config, IGlobeRepository repository, ILogger<AppController> logger) { _mailService = mailService; _config = config; _repository = repository; _logger = logger; }
// GET: /Home/ public HomeController(IMailService mail,IUnitOfWork unitOfWork) { _mail = mail; //_topicRepo = repository; //_companyRepo = compRepo; _topicRepo = unitOfWork.Topics; _companyRepo = unitOfWork.Companies; _iUnitOfWork = unitOfWork; }
private ForumController(IForumCategoryRepository forumcategoryRepository, IMailService mail) { ViewBag.IsAdmin = false; _mail = mail; _forumcategoryRepository = forumcategoryRepository; _mu = MembershipWrapper.GetUser(); if (_mu != null) { _ua = new UserAccount(Convert.ToInt32(_mu.ProviderUserKey)); } }
public CakeScheduleService() { InitializeComponent(); _mailService = new MailService(_departmentServices, _appConfigReader, DateTime.Now.Date); _cakeSheduleDao = new CakeScheduleDao(_appConfigReader.RepositoryPath); _departmentDao = new DepartmentDao(_appConfigReader.RepositoryPath); _scheduleWorker = new ScheduleWorker(_cakeScheduleServices, _departmentServices, _mailService, _cakeSheduleDao, _departmentDao, _appConfigReader); _serviceLogger = new ServiceLogger(_appConfigReader.LogPath); _scheduleWorker.CakeScheduleFinished += ScheduleFinished; }
public MainWindowViewModel(IIssueService issueService, IProjectService projectService, IRepositoryService repositoryService, IScriptService scriptService, IMailService mailService, IDocumentBuilder documentBuilder, ICustomFieldsService customFieldsService) { _issueService = issueService; _projectService = projectService; _repositoryService = repositoryService; _scriptService = scriptService; _mailService = mailService; _documentBuilder = documentBuilder; _customFieldsService = customFieldsService; }
public CrosscuttingService() { if (mailSvc == null) { mailSvc = ContainerHelper.Instance.Resolve<IMailService>(); mailSvc.ConfigureServer("smtp.yeah.net", 25, "pfagent", "pf18616379842"); } if (captchaSvc == null) { captchaSvc = ContainerHelper.Instance.Resolve<ICaptcha>(); } }
public QueueProcessor( IMailService mailService, IQueryableRepository<IMailMessage> repository, IDataChangeNotification changeNotification) { Contract.Requires(mailService != null); Contract.Requires(repository != null); Contract.Requires(changeNotification != null); this.MailService = mailService; this.Repository = repository; this.ChangeNotification = changeNotification; }
public LoanRequestsService( IGangsterBankUnitOfWork gangsterBankUnitOfWork, ILoanRequestPrerequisiteRule loanRequestPrerequisiteRule, ICreditManager creditManager, IMailService mailService) { Contract.Requires<ArgumentNullException>(gangsterBankUnitOfWork.IsNotNull()); Contract.Requires<ArgumentNullException>(loanRequestPrerequisiteRule.IsNotNull()); this.gangsterBankUnitOfWork = gangsterBankUnitOfWork; this.loanRequestPrerequisiteRule = loanRequestPrerequisiteRule; this.creditManager = creditManager; this.mailService = mailService; }
/// <summary> /// This contructor is to inject object using dependency injection /// </summary> /// <param name="logger"></param> /// <param name="book"></param> /// <param name="userService"></param> /// <param name="mailService"></param> /// <param name="taskService"></param> public BookController(ILogger <BookController> logger, IBookService book, IUserService userService, IMailService mailService, ITaskService taskService) { _logger = logger; _book = book; _userService = userService; _mailService = mailService; _taskService = taskService; }
public UsersController(IOptions <EmailConfiguration> mailSettings, IUnitOfWork <User> user, IMapper mapper, DataContext context, UserManager <User> userManager, IMailService mailService, IHubContext <SignalRHub> hubContext) { _context = context; _user = user; _mapper = mapper; _userManager = userManager; this.mailService = mailService; _mailSettings = mailSettings.Value; _hubContext = hubContext; }
public HomeController(IMailService mailService, IConfigurationRoot config, IWorldRepository repository) { this.mailService = mailService; this.config = config; this.repository = repository; }
public TcpService(IDataService dataService, IConfiguration configuration, IMailService mailService) { _dataService = dataService; _configuration = configuration; _mailService = mailService; }
public AppController(IMailService mailService, IConfigurationRoot config, IWorldRepository repository) { _mailService = mailService; _config = config; _repository = repository; }
public AppController(IMailService mailService, IRepository repository) { _mailService = mailService; _repository = repository; }
public AccountController(UserManager <AppUser> userManager, SignInManager <AppUser> signInManager, ITokenService tokenService, IMapper mapper, IMailService mailService) { _mailService = mailService; _mapper = mapper; _tokenService = tokenService; _signInManager = signInManager; _userManager = userManager; }
public MailController(IMailService mailService) { this.mailService = mailService; }
public PointsOfInterestController(ILogger <PointsOfInterestController> logger, IMailService mailService) { _logger = logger; _mailService = mailService; }
public SellersController(IConfiguration config, OnlineDBContext db, OnlineDBContext context, IMailService mailService) { _config = config; _context = context; _db = db; _mailService = mailService; }
public PointOfInterestController(ILogger <PointOfInterestController> logger, IMailService mailService) { _logger = logger ?? throw new ArgumentException(nameof(logger)); _mailService = mailService ?? throw new ArgumentException(nameof(mailService)); }
public AccountController(IBankAccountService bankAccountService, IMailService mailService, IAccountNumberGenerator numberGenerator) { _numberGenerator = numberGenerator; _bankAccountService = bankAccountService; _mailService = mailService; }
public AppController(IMailService mailService) { _mailService = mailService; }
public AccountController(IUserService userService, IMailService mailService) : base(userService, mailService) { }
/// <summary> /// 构造函数 /// </summary> /// <param name="mailService">邮件服务实例</param> public MailLogger(IMailService mailService) { this.MailService = mailService; }
public AuthController(ApplicationDbContext db, IOptions <ApplicationSettings> appSettings, UserManager <IdentityUser> userManager, IUserService userService, IMailService mailService, IConfiguration configuration) { _db = db; _userService = userService; _mailService = mailService; _configuration = configuration; _userManger = userManager; _appSettings = appSettings.Value; }
public ProductController(ILogger <ProductController> logger, IMailService mailService, IProductRepository productRepository) { _logger = logger; _mailService = mailService; _productRepository = productRepository; }
public OrderQuoteController(IMailService mailService, IOptions <MailSettings> mailSettings, IViewRenderService renderService) { MailService = mailService; RenderService = renderService; MailSettings = mailSettings.Value; }
public AppController(IMailService service, IWorldRepository repository) { _mailService = service; _repository = repository; }
//inject IMailService public HomeController(IMailService mailService, IMessageBoardRepository repo) { _mailService = mailService; _repo = repo; }
public PointsOfInterestController(ILogger <PointsOfInterestController> logger, IMailService mailService, ICityInfoRepository cityInfoRepository) { _logger = logger; _mailService = mailService; _cityInfoRepository = cityInfoRepository; }
public SendAllTasksDailyManager(IMailService mailService) { _mailService = mailService ?? throw new ArgumentNullException(nameof(mailService)); }
public BaseController(IMailService mailService, IConfigurationRoot config, BapContext context) { MailService = mailService; Config = config; Db = context; }
public MessageViewModel(IEventAggregator eventAggregator, IMessageBoxService messageBoxService, IMailService mailService, IContactService contactService) { _eventAggragtor = eventAggregator; _messageBoxService = messageBoxService; _mailService = mailService; SendMessageCommand = new DelegateCommand(SendMessage, CanSendMessage); HighImportanceCommand = new DelegateCommand <bool?>(HighImportance); LowImportanceCommand = new DelegateCommand <bool?>(LowImportance); Contacts = contactService.GetContacts(); IconSource = "pack://application:,,,/IgOutlook.Core;component/Images/Mail.ico"; }
public TalksController(ICodeCampRepository repo, UserManager <CodeCampUser> userMgr, ILogger <TalksController> logger, IMailService mailService) { _logger = logger; _repo = repo; _userMgr = userMgr; _mailService = mailService; }
public ContactController(IMapper mapper, IContactService contactService, IUserService userService, IEventService eventService, IModificationEntryService modService, IMailService mailService, IHistoryService historyService) { _mapper = mapper; this.eventService = eventService; this.userService = userService; this.modService = modService; this.contactService = contactService; this.historyService = historyService; this.mailService = mailService; }
public MemberController(IMemberService memberService, IConfiguration configuration, IMailService mailService, IRestaurantService restaurantService) { this._memberService = memberService; this._configuration = configuration; this._mailService = mailService; this._restaurantService = restaurantService; }
public PointsOfInterestsController(ILogger <PointsOfInterestsController> logger, IMailService mailService) { _logger = logger; //if you cant use the implementation above then you could request the logger from the container itself directly //this provide access to the httpContext Container //HttpContext.RequestServices.GetService() to get services //but it's advised to use the injection method instead. //---- //now we can use the send method to send "email" in the Delete method _mailService = mailService; }
public MailListViewModel(IMailService mailService, IDialogService dialogService) { _mailService = mailService; _dialogService = dialogService; }