public RegistrationController(ICustomerManagementService customerManagementService, IAddressManagementService addressManagementService,
     IMailService mailService)
 {
     _customerManagementService = customerManagementService;
     _addressManagementService = addressManagementService;
     _mailService = mailService;
 }
Exemple #2
0
        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);
        }
Exemple #4
0
 public UserService(IUserActionsDAO userActionDAO, AbstractUserMovieDAO userMovieRepo, IMoviesShowingService moviesService, IMailService mailService)
 {
     _userMovieRepo = userMovieRepo;
     _userActionDAO = userActionDAO;
     _moviesService = moviesService;
     _mailService = mailService;
 }
Exemple #5
0
 public AdminController(IDataService dataService, AuthorizationRoot authorizationRoot, IMailService mailService, ISocialService socialService)
     : base(dataService, authorizationRoot)
 {
     _dataService = dataService;
     _mailService = mailService;
     _socialService = socialService;
 }
Exemple #6
0
 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);
        }
Exemple #9
0
 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;
 }
Exemple #12
0
 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);
 }
Exemple #18
0
 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;
 }
Exemple #20
0
        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());
 }
Exemple #22
0
 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;
 }
Exemple #24
0
        // GET: /Home/
        public HomeController(IMailService mail,IUnitOfWork unitOfWork)
        {
            _mail = mail;

            //_topicRepo = repository;
            //_companyRepo = compRepo;

            _topicRepo = unitOfWork.Topics;
            _companyRepo = unitOfWork.Companies;
            _iUnitOfWork = unitOfWork;
        }
Exemple #25
0
 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>();
     }
 }
Exemple #29
0
		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;
 }
Exemple #32
0
 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;
 }
Exemple #33
0
 public HomeController(IMailService mailService, IConfigurationRoot config, IWorldRepository repository)
 {
     this.mailService = mailService;
     this.config      = config;
     this.repository  = repository;
 }
Exemple #34
0
 public TcpService(IDataService dataService, IConfiguration configuration, IMailService mailService)
 {
     _dataService   = dataService;
     _configuration = configuration;
     _mailService   = mailService;
 }
Exemple #35
0
 public AppController(IMailService mailService, IConfigurationRoot config, IWorldRepository repository)
 {
     _mailService = mailService;
     _config      = config;
     _repository  = repository;
 }
Exemple #36
0
 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;
 }
Exemple #38
0
 public MailController(IMailService mailService)
 {
     this.mailService = mailService;
 }
Exemple #39
0
 public PointsOfInterestController(ILogger <PointsOfInterestController> logger, IMailService mailService)
 {
     _logger      = logger;
     _mailService = mailService;
 }
Exemple #40
0
 public AdminController(IDataService dataService, AuthorizationRoot authorizationRoot, IMailService mailService, ISocialService socialService)
     : base(dataService, authorizationRoot)
 {
     _dataService   = dataService;
     _mailService   = mailService;
     _socialService = socialService;
 }
Exemple #41
0
 public SellersController(IConfiguration config, OnlineDBContext db, OnlineDBContext context, IMailService mailService)
 {
     _config      = config;
     _context     = context;
     _db          = db;
     _mailService = mailService;
 }
Exemple #42
0
 public PointOfInterestController(ILogger <PointOfInterestController> logger, IMailService mailService)
 {
     _logger      = logger ?? throw new ArgumentException(nameof(logger));
     _mailService = mailService ?? throw new ArgumentException(nameof(mailService));
 }
Exemple #43
0
 public AccountController(IBankAccountService bankAccountService, IMailService mailService, IAccountNumberGenerator numberGenerator)
 {
     _numberGenerator    = numberGenerator;
     _bankAccountService = bankAccountService;
     _mailService        = mailService;
 }
Exemple #44
0
 public AppController(IMailService mailService)
 {
     _mailService = mailService;
 }
Exemple #45
0
 public AccountController(IUserService userService, IMailService mailService) : base(userService, mailService)
 {
 }
Exemple #46
0
 /// <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;
 }
Exemple #51
0
 //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;
 }
Exemple #53
0
 public SendAllTasksDailyManager(IMailService mailService)
 {
     _mailService = mailService ?? throw new ArgumentNullException(nameof(mailService));
 }
Exemple #54
0
 public BaseController(IMailService mailService, IConfigurationRoot config, BapContext context)
 {
     MailService = mailService;
     Config      = config;
     Db          = context;
 }
Exemple #55
0
        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";
        }
Exemple #56
0
 public TalksController(ICodeCampRepository repo, UserManager <CodeCampUser> userMgr, ILogger <TalksController> logger, IMailService mailService)
 {
     _logger      = logger;
     _repo        = repo;
     _userMgr     = userMgr;
     _mailService = mailService;
 }
Exemple #57
0
 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;
        }
Exemple #60
0
 public MailListViewModel(IMailService mailService, IDialogService dialogService)
 {
     _mailService   = mailService;
     _dialogService = dialogService;
 }