コード例 #1
0
 public CouponTaskManager(
     ILogger <CouponTaskManager> Logger,
     ICacheHelper ICacheHelper,
     ICreatePromotionService ICreatePromotionService,
     IPromotionTaskRepository IPromotionTaskRepository,
     IPromotionSingleTaskUsersHistoryRepository IPromotionSingleTaskUsersHistoryRepository,
     IChannelDictionariesRepository IChannelDictionariesRepository,
     ISmsService ISmsService,
     IPushService IPushService,
     IPromotionTaskPromotionListRepository IPromotionTaskPromotionListRepository,
     TuhuMemoryCacheNoJson TuhuMemoryCacheNoJson,
     IPromotionTaskBudgetRepository IPromotionTaskBudgetRepository,
     IPromotionTaskProductCategoryRepository IPromotionTaskProductCategoryRepository
     )
 {
     logger                  = Logger;
     cacheHelper             = ICacheHelper;
     promotionTaskRepository = IPromotionTaskRepository;
     promotionSingleTaskUsersHistoryRepository = IPromotionSingleTaskUsersHistoryRepository;
     promotionTaskPromotionListRepository      = IPromotionTaskPromotionListRepository;
     channelDictionariesRepository             = IChannelDictionariesRepository;
     pushService                            = IPushService;
     smsService                             = ISmsService;
     createPromotionService                 = ICreatePromotionService;
     tuhuMemoryCache                        = TuhuMemoryCacheNoJson;
     promotionTaskBudgetRepository          = IPromotionTaskBudgetRepository;
     promotionTaskProductCategoryRepository = IPromotionTaskProductCategoryRepository;
 }
コード例 #2
0
 public UserService(IUnitOfWorks unitOfWorks,
                    IUserRepository userRepository,
                    IUserQueryRepository userQueryRepository,
                    IJwtTokenHelper jwtTokenHelper,
                    IEmailSender emailSender,
                    ISecurityCodesRepository securityCodesRepository,
                    IConfiguration configuration,
                    GlobalSettings globalSettings,
                    IHttpContextAccessor httpContextAccessor,
                    IAddressRepository addressRepository,
                    ISecurityCodeQueryRepository securityCodeQueryRepository,
                    ISmsService smsService,
                    IUserContext userContext)
 {
     _unitOfWorks                 = unitOfWorks;
     _userRepository              = userRepository;
     _userQueryRepository         = userQueryRepository;
     _jwtTokenHelper              = jwtTokenHelper;
     _emailSender                 = emailSender;
     _securityCodesRepository     = securityCodesRepository;
     _configuration               = configuration;
     _globalSettings              = globalSettings;
     _httpContextAccessor         = httpContextAccessor;
     _addressRepository           = addressRepository;
     _securityCodeQueryRepository = securityCodeQueryRepository;
     _smsService  = smsService;
     _userContext = userContext;
 }
コード例 #3
0
ファイル: TaskController.cs プロジェクト: infotechub/cbtch
        // GET: Task
        public TaskController(IHelperService helperService, ISmsService smsSvc, IEnrolleeService enrolleeService, ILogAdminService loggersvc, IProviderService providersvc, ISession session, IEmailSender emailSender, SiteSettings siteSettings, Site site, IPlanService planService, IUniquePageService uniquepageService, IPageMessageSvc pageMessageSvc, IServicesService serviceSvc, IProviderService Providersvc, ILogAdminService logger, ICompanyService companyService, UserService userService, IRoleService roleService, MailSettings mailSettings, Services.ClaimService claimserv)
        {
            _helperSvc       = helperService;
            _enrolleeService = enrolleeService;
            _smsservice      = smsSvc;
            _logger          = loggersvc;
            _providerservice = providersvc;

            _session           = session;
            _emailSender       = emailSender;
            _siteSettings      = siteSettings;
            _site              = site;
            _planService       = planService;
            _uniquePageService = uniquepageService;
            _pageMessageSvc    = pageMessageSvc;

            _serviceSvc  = serviceSvc;
            _providerSvc = Providersvc;
            _logger      = logger;
            _companySvc  = companyService;
            _userservice = userService;
            _rolesvc     = roleService;

            _mailSettings = mailSettings;

            _claimservice = claimserv;
        }
コード例 #4
0
        public bool SmsQuote()
        {
            ISmsService _smsService = AppContainer.Container.Resolve <ISmsService>();

            _smsService.CreateSms(_quote.ToQuoteSms());
            return(true);
        }
コード例 #5
0
        public ApplicationUserManager(
            IUserStore <ApplicationUser, string> store, IEmailService emailService, ISmsService smsService)
            : base(store)
        {
            // Configure validation logic for usernames
            UserValidator = new UserValidator <ApplicationUser>(this)
            {
                AllowOnlyAlphanumericUserNames = false,
                RequireUniqueEmail             = true
            };

            // Configure validation logic for passwords
            PasswordValidator = new PasswordValidator {
                RequiredLength          = 6,
                RequireNonLetterOrDigit = true,
                RequireDigit            = true,
                RequireLowercase        = true,
                RequireUppercase        = true
            };

            // Configure user lockout defaults
            UserLockoutEnabledByDefault          = true;
            DefaultAccountLockoutTimeSpan        = TimeSpan.FromMinutes(5);
            MaxFailedAccessAttemptsBeforeLockout = 5;

            EmailService = emailService;
            SmsService   = smsService;

            InitTwoFactorSystem();
        }
コード例 #6
0
 public SmsMessagingReceiver(ISmsService smsService, IOptions <RabbitMqConfiguration> rabbitMqOptions)
 {
     _hostname   = rabbitMqOptions.Value.Hostname;
     _queueName  = rabbitMqOptions.Value.SMSQueueName;
     _smsService = smsService;
     InitializeRabbitMqListener();
 }
コード例 #7
0
 public UserController(MyDBContext myDBContext, IAuthy auth, ISmsService smsService, IMapper mapper)
 {
     _ctx        = myDBContext;
     _authy      = auth;
     _smsService = smsService;
     _mapper     = mapper;
 }
コード例 #8
0
        public TeilnehmerViewModel(IWindowController controller) : base(controller)
        {
            TestResults = new List <TestResult>
            {
                TestResult.Unknown,
                TestResult.Negative,
                TestResult.Positive
            };

            var configuration = new ConfigurationBuilder()
                                .SetBasePath(Environment.CurrentDirectory)
                                .AddJsonFile("appsettings.json")
                                .AddUserSecrets <TwilioSmsService>()
                                .AddEnvironmentVariables()
                                .Build();

            _smsService = new TwilioSmsService(
                configuration["Twilio:AccountSid"], configuration["Twilio:AuthToken"]);

            _stringRandomizer         = new Randomizer();
            Message                   = string.Empty;
            Examination               = null;
            _participantSmsIdentifier = string.Empty;
            ExaminationIdentifier     = null;
            ParticipantIdentifier     = null;
            SelectedTestResult        = TestResult.Unknown;
            LoadCommandsAsync();
        }
コード例 #9
0
        public RegistrationModel(ISmsService smsService, AppRepository appRepository)
        {
            _smsService    = smsService;
            _appRepository = appRepository;

            //var dude = _appRepository.Costumers.Include(x => x.CardBindings).FirstOrDefault(x => x.Phone.Contains("443"));
            //var foo = _appRepository.CardBidnings.FirstOrDefault(x => x.BindingId == "2687f56c-000f-5000-8000-18421823560d");

            //var client = new Client(shopId: Strings.YandexShopId, secretKey: Strings.YandexAPIKey);

            //client.CreatePayment(new NewPayment
            //{
            //    Amount = new Amount { Currency = "RUB", Value = new decimal(250) },
            //    PaymentMethodId = "2687f56c-000f-5000-8000-18421823560d",
            //    Capture = true,
            //    Description = "Списание 250 руб. за использование паувербанка более 5-ти дней",
            //    Confirmation = new Confirmation
            //    {
            //        Type = ConfirmationType.Redirect,
            //        ReturnUrl = ""
            //    },
            //});

            //var dude1 = _appRepository.Costumers.Include(x => x.Sessions).ThenInclude(x => x.Powerbank).FirstOrDefault(x => x.Phone.Contains("225"));
            //var dude2 = _appRepository.Costumers.Include(x => x.Sessions).ThenInclude(x => x.Powerbank).FirstOrDefault(x => x.Phone.Contains("071"));

            //var mirzo = _appRepository.Costumers.Include(x => x.Sessions).ThenInclude(x => x.Powerbank).FirstOrDefault(x => x.Phone.Contains("+7 (123) 123 12 34"));
        }
コード例 #10
0
 public ExameController(IVirusBacteriaService virusBacteriaContext,
                        IExameService exameContext,
                        IPessoaService pessoaContext,
                        IMunicipioService municicpioContext,
                        IEstadoService estadoContext,
                        IConfiguration configuration,
                        ISituacaoVirusBacteriaService situacaoPessoaContext,
                        IPessoaTrabalhaEstadoService pessoaTrabalhaEstado,
                        IPessoaTrabalhaMunicipioService pessoaTrabalhaMunicipioContext,
                        IAreaAtuacaoService areaAtuacaoContext,
                        IUsuarioService usuarioContext,
                        ISmsService smsService,
                        IImportarExameService importarExameService)
 {
     _virusBacteriaContext           = virusBacteriaContext;
     _exameContext                   = exameContext;
     _pessoaContext                  = pessoaContext;
     _municicpioContext              = municicpioContext;
     _estadoContext                  = estadoContext;
     _situacaoPessoaContext          = situacaoPessoaContext;
     _pessoaTrabalhaEstadoContext    = pessoaTrabalhaEstado;
     _pessoaTrabalhaMunicipioContext = pessoaTrabalhaMunicipioContext;
     _configuration                  = configuration;
     _areaAtuacaoContext             = areaAtuacaoContext;
     _usuarioContext                 = usuarioContext;
     _smsService           = smsService;
     _importarExameService = importarExameService;
 }
コード例 #11
0
 public IdentityService(IPisheyarContext context, ISmsService smsService, IMapper mapper, IOptions <JwtSettings> jwtSettings)
 {
     _context     = context;
     _sms         = smsService;
     _mapper      = mapper;
     _jwtSettings = jwtSettings.Value;
 }
コード例 #12
0
 public HomeController(
     TMDbContext dbContext,
     ICustomerCouponRepository customerCouponRepo,
     IContactRepository contactRepo,
     IMissionRepository missionRepo,
     IMemberRepository memberRepo,
     UserManager <AuthUser> userManager,
     SignInManager <AuthUser> signInManager,
     RoleManager <AuthRole> roleManager,
     IMailService emailSender,
     ISmsService smsSender,
     ILoggerFactory loggerFactory,
     IConfigurationRoot config,
     IHostingEnvironment env)
 {
     _TMDbContext        = dbContext;
     _customerCouponRepo = customerCouponRepo;
     _contactRepo        = contactRepo;
     _missionRepo        = missionRepo;
     _memberRepo         = memberRepo;
     _userManager        = userManager;
     _signInManager      = signInManager;
     _roleManager        = roleManager;
     _emailSender        = emailSender;
     _smsSender          = smsSender;
     _logger             = loggerFactory.CreateLogger <HomeController>();
     _config             = config;
     _env = env;
 }
コード例 #13
0
 public AuthorizationService(IUserService userService, IPasswordHasher <User> passwordHasher, ISmsService smsService, IMemoryCache memoryCache)
 {
     _userService    = userService;
     _passwordHasher = passwordHasher;
     _smsService     = smsService;
     _memoryCache    = memoryCache;
 }
コード例 #14
0
 public NotificationService(ISmsService smsService, UserManager <UserEntity> userManager, ILogger <NotificationService> logger, IDateService dateService)
 {
     _smsService  = smsService;
     _userManager = userManager;
     _logger      = logger;
     _dateService = dateService;
 }
コード例 #15
0
 public AuthController(IAuthService authService, IAccessTokenService accessTokenService, IMailService mailService, ISmsService smsService)
 {
     m_auth_service  = authService;
     m_token_service = accessTokenService;
     m_mail_service  = mailService;
     m_sms_service   = smsService;
 }
コード例 #16
0
        public static ISmsService GetSmsService(string serviceProviderName)
        {
            Hashtable configValues = ConfigurationManager.GetSection("SMSServiceFactory") as Hashtable;

            if (configValues == null)
            {
                throw new ApplicationException("请在配置文件中配置SMSServiceFactory结点,以获取SMSService");
            }
            string typeName = (string)configValues[serviceProviderName];

            ISmsService service = null;

            try
            {
                Type type = Type.GetType(typeName);
                if (type == null)
                {
                    throw new ApplicationException("SMSServiceFactory配置名称:" + serviceProviderName + ",不能创建SMSService类型, 名称:" + typeName);
                }
                service = Activator.CreateInstance(type) as ISmsService;
            }
            catch (Exception ex)
            {
                throw new ApplicationException("SMSServiceFactory配置名称:" + serviceProviderName + ",配置的类型不能获取:" + ex.ToString());
            }

            if (service == null)
            {
                throw new ApplicationException("SMSServiceFactory配置名称:" + serviceProviderName + ",配置的类型没有继承自ISmsService接口");
            }

            log.Info("实例化短信发送服务成功," + "SMSServiceFactory配置名称:" + serviceProviderName + ",服务类型名称:" + typeName);

            return(service);
        }
コード例 #17
0
 public IndexModel(
     ISmsService smsService,
     IStringLocalizer <SharedResource> sharedLocalizer)
 {
     _smsService = smsService;
     _localizer  = sharedLocalizer;
 }
コード例 #18
0
 public QuoteViewModel(ISmsService smsService, IEmailService emailService, IGALogger logger, IQuoteBuilder quoteBuilder, IQuoteRepository quoteRepo)
 {
     _quoteBuilder = quoteBuilder;
     _quoteRepo    = quoteRepo;
     _emailService = emailService;
     _smsService   = smsService;
 }
コード例 #19
0
 public LoginModel(
     IUnitOfWork unitOfWork,
     ISmsService smsService)
 {
     _unitOfWork = unitOfWork;
     _smsService = smsService;
 }
コード例 #20
0
 public AuthenticationService(IInvitationRepository invitationRepository,
                              ISendInvitesRequestValidationService <SendInvitesDto> requestValidationService,
                              ISmsService smsService)
 {
     _invitationRepository     = invitationRepository;
     _requestValidationService = requestValidationService;
     _smsService = smsService;
 }
コード例 #21
0
 public AuthHelper(IUserService userService, ISmsService smsService, IUserTokenService userTokenService, IRoleService roleService, IOnlineUserService onlineUserService)
 {
     this._userService      = userService;
     this._smsService       = smsService;
     this._userTokenService = userTokenService;
     this._roleService      = roleService;
     _onlineUserService     = onlineUserService;
 }
コード例 #22
0
ファイル: SmsController.cs プロジェクト: git-martin/yilehao
        public SmsController(IEnumerable <IBntWebModule> modules, ICurrencyService currencyService, ISmsService smsService)
        {
            _modules         = modules.OrderBy(m => m.InnerPosition);
            _currencyService = currencyService;
            _smsService      = smsService;

            Logger = NullLogger.Instance;
        }
コード例 #23
0
 public AccountController(UserManager <MrsMobileUser> userManager, IOptions <SmsOptions> options, ISmsService smsService, IDeviceService deviceService, ISmsAuthanticationService smsAuthanticationService)
 {
     this.userManager              = userManager;
     this.options                  = options;
     this.smsService               = smsService;
     this.deviceService            = deviceService;
     this.smsAuthanticationService = smsAuthanticationService;
 }
コード例 #24
0
 public AdminController(UserManager <User> userManager,
                        SignInManager <User> signInManager,
                        ISmsService smsService)
 {
     _userManager   = userManager;
     _signInManager = signInManager;
     _smsService    = smsService;
 }
コード例 #25
0
 public SmsController(IUnitofWork uow, ISmsService smsService, IKisilerService kisilerService, IBorclandirmaService borclandirmaService)
     : base(uow)
 {
     _uow                 = uow;
     _smsService          = smsService;
     _kisilerService      = kisilerService;
     _borclandirmaService = borclandirmaService;
 }
コード例 #26
0
 public TenantController(ITenantService service,
                         ITenantManager tenantManager,
                         ISmsService smsService) : base(service)
 {
     _service       = service;
     _tenantManager = tenantManager;
     _smsService    = smsService;
 }
コード例 #27
0
 public SmsController(ISmsService smsService, SmsSettings smsSettings,
                      ISettingService settingService, IPermissionService permissionService)
 {
     this._smsService        = smsService;
     this._smsSettings       = smsSettings;
     this._settingService    = settingService;
     this._permissionService = permissionService;
 }
コード例 #28
0
 public HomeGroupController(IHomeGroupService groupService, IMapper mapper, IGroupSessionService groupSessionService, IPersonService personService, ISmsService smsService)
 {
     _groupService        = groupService;
     _mapper              = mapper;
     _groupSessionService = groupSessionService;
     _personService       = personService;
     _smsService          = smsService;
 }
コード例 #29
0
 public UserAccountService(IRepository <User> userRepository,
                           UserManager userManager,
                           ISmsService smsService)
 {
     _userRepository = userRepository;
     _userManager    = userManager;
     _smsService     = smsService;
 }
コード例 #30
0
 /// <summary>
 /// Controller for all Notification actions
 /// </summary>
 /// <param name="dao">IDAO</param>
 /// <param name="authService">IAuthService</param>
 /// <param name="loggerFactory">ILoggerFactory</param>
 /// <param name="sms">ISmsService</param>
 /// <param name="email">IEmailService</param>
 public NotificationController(IDAO dao, IAuthService authService, ILoggerFactory loggerFactory, ISmsService sms, IEmailService email)
 {
     _sms         = sms;
     _email       = email;
     _dao         = dao;
     _authService = authService;
     _logger      = loggerFactory.CreateLogger <DAO>();
 }
コード例 #31
0
ファイル: SmsController.cs プロジェクト: pquic/qCommerce
 public SmsController(ISmsService smsService, SmsSettings smsSettings,
     ISettingService settingService, IPermissionService permissionService)
 {
     this._smsService = smsService;
     this._smsSettings = smsSettings;
     this._settingService = settingService;
     this._permissionService = permissionService;
 }
コード例 #32
0
 public SmsClickatellController(ClickatellSettings clickatellSettings,
     ISettingService settingService, ISmsService smsService,
     ILocalizationService localizationService)
 {
     this._clickatellSettings = clickatellSettings;
     this._settingService = settingService;
     this._smsService = smsService;
     this._localizationService = localizationService;
 }
コード例 #33
0
 public SmsVerizonController(VerizonSettings verizonSettings,
     ISettingService settingService, ISmsService smsService,
     ILocalizationService localizationService)
 {
     this._verizonSettings = verizonSettings;
     this._settingService = settingService;
     this._smsService = smsService;
     this._localizationService = localizationService;
 }
コード例 #34
0
ファイル: SendSMSController.cs プロジェクト: Oluyide/ABUFORM
 public SendSMSController(ISmsService smsService,
     IWebWorker workerContext, IUserService userService, HttpContextBase httpContextBase, IDateTimeHelper dateTimeHelper, IGeneralService genservice, IAuthenticationService Authe)
 {
     this._iUserService = userService;
     this._dateTime = dateTimeHelper;
     this._httpContextBase = httpContextBase;
     this._workerContext = workerContext;
     this._genservice = genservice;
     this._smsService = smsService;
     this._Authe = Authe;
 }
コード例 #35
0
        public EmailService(IMailboxConfiguration mailboxConfiguration, IEmailProvider emailProvider, ISmsService smsService, IMobileNumberValidator mobileNumberValidator, IBusinessHoursService businessHoursService)
        {
            Check.If(mailboxConfiguration).IsNotNull();
            Check.If(emailProvider).IsNotNull();
            Check.If(smsService).IsNotNull();
            Check.If(mobileNumberValidator).IsNotNull();
            Check.If(businessHoursService).IsNotNull();

            _mailboxConfiguration = mailboxConfiguration;
            _emailProvider = emailProvider;
            _smsService = smsService;
            _mobileNumberValidator = mobileNumberValidator;
            _businessHoursService = businessHoursService;
        }
コード例 #36
0
        /// <summary>
        ///     Initializes a new instance of the ListSmsViewModel class.
        /// </summary>
        public ListSmsViewModel(ISmsService smsService)
        {
            _smsService = smsService;
            _smsService.GetAllData(
                (item, error) =>
                {
                    if (error != null)
                        return;

                    if (item == null) return;

                    var myList = item.Select(s => new SmsBinding { Id = s.Id, Body = s.Body, Number = s.Number, Name = s.Name, Date = s.Date, AlarmName = s.AlarmName, ViewModel = this }).ToList();
                    var mySms = new ObservableCollection<SmsBinding>(myList);
                    ListSms = mySms;
                });

            SelectionElementCommand = new RelayCommand<SelectionChangedEventArgs>(OnSelectionElement);
            AddReminder = new RelayCommand(Add);
            DeleteAllReminders = new RelayCommand(DeleteAll);
        }
コード例 #37
0
        public new void SetUp()
        {
            _workContext = null;

            var pluginFinder = new PluginFinder(new AppDomainTypeFinder());
            var cacheManager = new NopNullCache();

            _shoppingCartSettings = new ShoppingCartSettings();
            _catalogSettings = new CatalogSettings();

            //price calculation service
            _discountService = MockRepository.GenerateMock<IDiscountService>();
            _categoryService = MockRepository.GenerateMock<ICategoryService>();
            _productAttributeParser = MockRepository.GenerateMock<IProductAttributeParser>();
            _priceCalcService = new PriceCalculationService(_workContext, _discountService,
                _categoryService, _productAttributeParser, _shoppingCartSettings, _catalogSettings);

            _eventPublisher = MockRepository.GenerateMock<IEventPublisher>();
            _eventPublisher.Expect(x => x.Publish(Arg<object>.Is.Anything));

            //shipping
            _shippingSettings = new ShippingSettings();
            _shippingSettings.ActiveShippingRateComputationMethodSystemNames = new List<string>();
            _shippingSettings.ActiveShippingRateComputationMethodSystemNames.Add("FixedRateTestShippingRateComputationMethod");
            _shippingMethodRepository = MockRepository.GenerateMock<IRepository<ShippingMethod>>();
            _logger = new NullLogger();
            _shippingService = new ShippingService(cacheManager,
                _shippingMethodRepository,
                _logger,
                _productAttributeParser,
                _checkoutAttributeParser,
                _shippingSettings, pluginFinder, _eventPublisher);

            _paymentService = MockRepository.GenerateMock<IPaymentService>();
            _checkoutAttributeParser = MockRepository.GenerateMock<ICheckoutAttributeParser>();
            _giftCardService = MockRepository.GenerateMock<IGiftCardService>();

            _eventPublisher = MockRepository.GenerateMock<IEventPublisher>();
            _eventPublisher.Expect(x => x.Publish(Arg<object>.Is.Anything));

            //tax
            _taxSettings = new TaxSettings();
            _taxSettings.ShippingIsTaxable = true;
            _taxSettings.PaymentMethodAdditionalFeeIsTaxable = true;
            _taxSettings.DefaultTaxAddressId = 10;
            _addressService = MockRepository.GenerateMock<IAddressService>();
            _addressService.Expect(x => x.GetAddressById(_taxSettings.DefaultTaxAddressId)).Return(new Address() { Id = _taxSettings.DefaultTaxAddressId });
            _taxService = new TaxService(_addressService, _workContext, _taxSettings, pluginFinder, _eventPublisher);

            _rewardPointsSettings = new RewardPointsSettings();

            _orderTotalCalcService = new OrderTotalCalculationService(_workContext,
                _priceCalcService, _taxService, _shippingService, _paymentService,
                _checkoutAttributeParser, _discountService, _giftCardService,
                _taxSettings, _rewardPointsSettings, _shippingSettings, _shoppingCartSettings, _catalogSettings);

            _orderService = MockRepository.GenerateMock<IOrderService>();
            _webHelper = MockRepository.GenerateMock<IWebHelper>();
            _localizationService= MockRepository.GenerateMock<ILocalizationService>();
            _languageService = MockRepository.GenerateMock<ILanguageService>();
            _productService = MockRepository.GenerateMock<IProductService>();
            _priceFormatter= MockRepository.GenerateMock<IPriceFormatter>();
            _productAttributeFormatter= MockRepository.GenerateMock<IProductAttributeFormatter>();
            _shoppingCartService= MockRepository.GenerateMock<IShoppingCartService>();
            _checkoutAttributeFormatter= MockRepository.GenerateMock<ICheckoutAttributeFormatter>();
            _customerService= MockRepository.GenerateMock<ICustomerService>();
            _encryptionService = MockRepository.GenerateMock<IEncryptionService>();
            _workflowMessageService = MockRepository.GenerateMock<IWorkflowMessageService>();
            _smsService = MockRepository.GenerateMock<ISmsService>();
            _customerActivityService = MockRepository.GenerateMock<ICustomerActivityService>();
            _currencyService = MockRepository.GenerateMock<ICurrencyService>();

            _paymentSettings = new PaymentSettings()
            {
                ActivePaymentMethodSystemNames = new List<string>()
                {
                    "Payments.TestMethod"
                }
            };
            _orderSettings = new OrderSettings();

            _localizationSettings = new LocalizationSettings();

            _orderProcessingService = new OrderProcessingService(_orderService, _webHelper,
                _localizationService, _languageService,
                _productService, _paymentService, _logger,
                _orderTotalCalcService, _priceCalcService, _priceFormatter,
                _productAttributeParser, _productAttributeFormatter,
                _giftCardService, _shoppingCartService, _checkoutAttributeFormatter,
                _shippingService, _taxService,
                _customerService, _discountService,
                _encryptionService, _workContext, _workflowMessageService,
                _smsService, _customerActivityService, _currencyService,
                _paymentSettings, _rewardPointsSettings,
                _orderSettings, _taxSettings, _localizationSettings);
        }
コード例 #38
0
 public PhoneNumberController(IPhoneNumberService phoneNumberService, ISmsService smsService, ICallService callService)
 {
     _phoneNumberService = phoneNumberService;
     _smsService = smsService;
     _callService = callService;
 }
コード例 #39
0
 public SmsController(ISmsService smsService)
 {
     _smsService = smsService;
 }
コード例 #40
0
ファイル: SendService.cs プロジェクト: XtremeKevinChow/rdroad
 private static void UnLoad()
 {
     _smsService = null;
     if (_mailService != null) _mailService.Close();
     _mailService = null;
 }
コード例 #41
0
 public UnreadController(ISmsService smsService, IEmailService emailService, ICallService callService)
 {
     _smsService = smsService;
     _emailService = emailService;
     _callService = callService;
 }
コード例 #42
0
 public BoardWebApiController(ApplicationDbContext context, ISmsService smsService, TelemetryClient telemetry)
 {
     _context = context;
     _smsService = smsService;
     _telemetry = telemetry;
 }
コード例 #43
0
ファイル: SendService.cs プロジェクト: XtremeKevinChow/rdroad
        private static void OnLoad(ISession session, ConfigParam config)
        {
            //短信发送服务
            _smsService = SmsServiceFactory.GetSmsService();

            //邮件发送服务
            _mailService = new MessageClass();
            //屏蔽发送异常,返回值true和false确定发送是否成功,发送结果状态码和错误信息分别在ErrorCode和ErrorMessage中
            _mailService.Silent = true;
            _mailService.Logging = true;
            _mailService.Charset = "GB2312";
            _mailService.Encoding = "GB2312";
            _mailService.ContentType = "text/html";
            //邮件服务器登陆认证的帐号、密码
            _mailService.MailServerUserName = config.MailAccount;
            _mailService.MailServerPassWord = config.MailPassword;
            //发送者邮箱地址(必须与登陆帐号、密码一致,即该邮箱必须属于登陆帐号的)
            _mailService.From = config.MailAddress;
            _mailService.FromName = config.MailSenderName;
        }
コード例 #44
0
 /// <summary>
 /// Ctor
 /// </summary>
 /// <param name="orderService">Order service</param>
 /// <param name="webHelper">Web helper</param>
 /// <param name="localizationService">Localization service</param>
 /// <param name="languageService">Language service</param>
 /// <param name="productService">Product service</param>
 /// <param name="paymentService">Payment service</param>
 /// <param name="logger">Logger</param>
 /// <param name="orderTotalCalculationService">Order total calculationservice</param>
 /// <param name="priceCalculationService">Price calculation service</param>
 /// <param name="priceFormatter">Price formatter</param>
 /// <param name="productAttributeParser">Product attribute parser</param>
 /// <param name="productAttributeFormatter">Product attribute formatter</param>
 /// <param name="giftCardService">Gift card service</param>
 /// <param name="shoppingCartService">Shopping cart service</param>
 /// <param name="checkoutAttributeFormatter">Checkout attribute service</param>
 /// <param name="shippingService">Shipping service</param>
 /// <param name="shipmentService">Shipment service</param>
 /// <param name="taxService">Tax service</param>
 /// <param name="customerService">Customer service</param>
 /// <param name="discountService">Discount service</param>
 /// <param name="encryptionService">Encryption service</param>
 /// <param name="workContext">Work context</param>
 /// <param name="workflowMessageService">Workflow message service</param>
 /// <param name="smsService">SMS service</param>
 /// <param name="customerActivityService">Customer activity service</param>
 /// <param name="currencyService">Currency service</param>
 /// <param name="eventPublisher">Event published</param>
 /// <param name="paymentSettings">Payment settings</param>
 /// <param name="rewardPointsSettings">Reward points settings</param>
 /// <param name="orderSettings">Order settings</param>
 /// <param name="taxSettings">Tax settings</param>
 /// <param name="localizationSettings">Localization settings</param>
 /// <param name="currencySettings">Currency settings</param>
 public OrderProcessingService(IOrderService orderService,
     IWebHelper webHelper,
     ILocalizationService localizationService,
     ILanguageService languageService,
     IProductService productService,
     IPaymentService paymentService,
     ILogger logger,
     IOrderTotalCalculationService orderTotalCalculationService,
     IPriceCalculationService priceCalculationService,
     IPriceFormatter priceFormatter,
     IProductAttributeParser productAttributeParser,
     IProductAttributeFormatter productAttributeFormatter,
     IGiftCardService giftCardService,
     IShoppingCartService shoppingCartService,
     ICheckoutAttributeFormatter checkoutAttributeFormatter,
     IShippingService shippingService,
     IShipmentService shipmentService,
     ITaxService taxService,
     ICustomerService customerService,
     IDiscountService discountService,
     IEncryptionService encryptionService,
     IWorkContext workContext,
     IWorkflowMessageService workflowMessageService,
     ISmsService smsService,
     ICustomerActivityService customerActivityService,
     ICurrencyService currencyService,
     IEventPublisher eventPublisher,
     PaymentSettings paymentSettings,
     RewardPointsSettings rewardPointsSettings,
     OrderSettings orderSettings,
     TaxSettings taxSettings,
     LocalizationSettings localizationSettings,
     CurrencySettings currencySettings)
 {
     this._orderService = orderService;
     this._webHelper = webHelper;
     this._localizationService = localizationService;
     this._languageService = languageService;
     this._productService = productService;
     this._paymentService = paymentService;
     this._logger = logger;
     this._orderTotalCalculationService = orderTotalCalculationService;
     this._priceCalculationService = priceCalculationService;
     this._priceFormatter = priceFormatter;
     this._productAttributeParser = productAttributeParser;
     this._productAttributeFormatter = productAttributeFormatter;
     this._giftCardService = giftCardService;
     this._shoppingCartService = shoppingCartService;
     this._checkoutAttributeFormatter = checkoutAttributeFormatter;
     this._workContext = workContext;
     this._workflowMessageService = workflowMessageService;
     this._shippingService = shippingService;
     this._shipmentService = shipmentService;
     this._taxService = taxService;
     this._customerService = customerService;
     this._discountService = discountService;
     this._encryptionService = encryptionService;
     this._smsService = smsService;
     this._customerActivityService = customerActivityService;
     this._currencyService = currencyService;
     this._eventPublisher = eventPublisher;
     this._paymentSettings = paymentSettings;
     this._rewardPointsSettings = rewardPointsSettings;
     this._orderSettings = orderSettings;
     this._taxSettings = taxSettings;
     this._localizationSettings = localizationSettings;
     this._currencySettings = currencySettings;
 }
コード例 #45
0
 public SmsProxy(ISmsService smsService)
 {
     _smsService = smsService;
 }
コード例 #46
0
 public SmsController(ISmsService smsService, IApiAuthenticationSettings apiAuthenticationSettings)
 {
     _smsService = smsService;
     _apiAuthenticationSettings = apiAuthenticationSettings;
 }
コード例 #47
0
 public IFluentSms Using(ISmsService service)
 {
     smsService = service;
     return this;
 }
コード例 #48
0
 public void ExecuteSend(ISmsService smsService)
 {
     foreach (string mobile in mobileList)
     {
         smsService.SendSms(mobile, smsMessage);
     }
 }
コード例 #49
0
ファイル: SmsController.cs プロジェクト: mistakenot/mcrhack
 public SmsController()
 {
     bookService = MvcApplication.BookService;
     smsService = MvcApplication.SmsService;
 }
コード例 #50
0
 public SubscriptionController()
 {
     this.bookService = MvcApplication.BookService;
     this.smsService = MvcApplication.SmsService;
 }