Пример #1
0
 public AccountAppServiceTests()
 {
     this.subRepositoryUserLong      = Resolve <IRepository <User, long> >();
     this.subUserRegistrationManager = Resolve <UserRegistrationManager>();
     this.subClientFavouriteManager  = Resolve <IClientFavouriteManager>();
     this.subSMSManager = Resolve <ISMSManager>();
     this.subSmartContractAppService = Resolve <ISmartContractAppService>();
     this.subAbpSession               = Resolve <IAbpSession>();
     this.subTenantCache              = Resolve <ITenantCache>();
     this.subConfiguration            = Resolve <IConfiguration>();
     this.subAbpLoginResultTypeHelper = Resolve <AbpLoginResultTypeHelper>();
     this.subRoleAppService           = Resolve <IRoleAppService>();
     this.subLogger = Resolve <ILogger <AccountAppService> >();
     this.subRepositoryAgentProfileLong          = Resolve <IRepository <AgentProfile, long> >();
     this.subRepositoryAgentCompany              = Resolve <IRepository <AgentCompany> >();
     this.subRepositoryAgentCompanyBranch        = Resolve <IRepository <AgentCompanyBranch> >();
     this.subRepositoryUserRoleLong              = Resolve <IRepository <UserRole, long> >();
     this.subRepositoryAgentPreferredCategory    = Resolve <IRepository <AgentPreferredCategory> >();
     this.subRepositoryAgentPreferredSubDistrict = Resolve <IRepository <AgentPreferredSubDistrict> >();
     this.subUserManager  = Resolve <UserManager>();
     this.subLogInManager = Resolve <LogInManager>();
     this.subSmartUserDocUploadAppService  = Resolve <ISmartUserDocUploadAppService>();
     this.subRepositorySmartAgreementLease = Resolve <IRepository <Core.Models.SmartAgreementLease> >();
     this.subRepositorySmartAgreementSell  = Resolve <IRepository <Core.Models.SmartAgreementSell> >();
     this.subRepositorySmartContract       = Resolve <IRepository <Core.Models.SmartContract> >();
     this.subRepositorySmartUserToken      = Resolve <IRepository <Core.Models.SmartUserToken> >();
     this.subAgentManager = Resolve <AgentManager>();
 }
Пример #2
0
        public UserRegistrationManager(
            TenantManager tenantManager,
            UserManager userManager,
            RoleManager roleManager,
            ISmtpEmailSender emailSender,
            IAppNotifier appNotifier,
            ISMSManager smsManager,
            ICacheManager cacheManager,
            ICaptchaManager captchaManager,
            IRepository <ThirdPartyUser, long> thirdPartyUserRepository,
            IPasswordHasher <User> passwordHasher)
        {
            _tenantManager            = tenantManager;
            _userManager              = userManager;
            _roleManager              = roleManager;
            _emailSender              = emailSender;
            _appNotifier              = appNotifier;
            _smsManager               = smsManager;
            _cacheManager             = cacheManager;
            _captchaManager           = captchaManager;
            _thirdPartyUserRepository = thirdPartyUserRepository;
            _passwordHasher           = passwordHasher;

            AbpSession = NullAbpSession.Instance;
        }
Пример #3
0
 public OptimalPackageManager()
 {
     packageManager = GetContainer().Resolve <IPackageManager>();
     crmManager     = GetContainer().Resolve <ICRMManager>();
     smsManager     = GetContainer().Resolve <ISMSManager>();
     callManager    = GetContainer().Resolve <ICallManager>();
     lineManager    = GetContainer().Resolve <ILineManager>();
 }
Пример #4
0
 public frmYeniCari()
 {
     InitializeComponent();
     _cari = kernel.Get <ICarilerManager>();
     _sms  = kernel.Get <ISMSManager>();
     _sms.SetAuth();
     _hash = kernel.Get <IHashManager>();
     musterilerBindingSource.AllowNew   = true;
     musterilerBindingSource.DataSource = _cariModel;
 }
Пример #5
0
 public ReportsEngineManager()
 {
     _clientTypeManager = GetContainer().Resolve <IClientTypeManager>();
     _smsManager        = GetContainer().Resolve <ISMSManager>();
     _callManager       = GetContainer().Resolve <ICallManager>();
     _clientManager     = GetContainer().Resolve <IClientManager>();
     _packageManager    = GetContainer().Resolve <IPackageManager>();
     _lineManager       = GetContainer().Resolve <ILineManager>();
     _crmManager        = GetContainer().Resolve <ICRMManager>();
 }
Пример #6
0
 public AccountAppService(
     UserRegistrationManager userRegistrationManager,
     ISMSManager smsManager,
     LogInManager loginManager,
     UserManager userManager)
 {
     _userRegistrationManager = userRegistrationManager;
     _smsManager   = smsManager;
     _loginManager = loginManager;
     _userManager  = userManager;
 }
Пример #7
0
 /// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="logInManager"></param>
 /// <param name="cacheManager"></param>
 public SMSLoginController(
     LogInManager logInManager,
     ICacheManager cacheManager,
     ICaptchaManager captchaManager,
     UserManager userManager,
     ISMSManager smsManager
     )
 {
     _logInManager          = logInManager;
     _cacheManager          = cacheManager;
     _captchaManager        = captchaManager;
     LocalizationSourceName = MFConsts.LocalizationSourceName;
     _smsManager            = smsManager;
     _userManager           = userManager;
 }
Пример #8
0
 /// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="userRegistrationManager"></param>
 /// <param name="smsManager"></param>
 /// <param name="loginManager"></param>
 /// <param name="passwordComplexityChecker"></param>
 /// <param name="captchaManager"></param>
 public RegisterAppService(
     UserRegistrationManager userRegistrationManager,
     ISMSManager smsManager,
     LogInManager loginManager,
     PasswordComplexityChecker passwordComplexityChecker,
     ICacheManager cacheManager,
     UserManager userManager,
     ICaptchaManager captchaManager)
 {
     _userRegistrationManager = userRegistrationManager;
     _smsManager   = smsManager;
     _loginManager = loginManager;
     _passwordComplexityChecker = passwordComplexityChecker;
     _cacheManager   = cacheManager;
     _userManager    = userManager;
     _captchaManager = captchaManager;
 }
Пример #9
0
        public frmCarilerList()
        {
            InitializeComponent();
            lock (_smsLock)
            {
                if (_sms == null)
                {
                    _sms = kernel.Get <ISMSManager>();
                }
            }
            _sms.SetAuth();
            _cari = kernel.Get <ICarilerManager>();

            if (_selectedModel == null)
            {
                cariIslemTop.Enabled = false; return;
            }
            ;
            musterilerBindingSource.DataSource = _selectedModel;
        }
Пример #10
0
 public accountController()
 {
     #region Cihaz Hareketleri İçin Kullanılan Modüller
     lock (_hareketLock)
     {
         if (_hareket == null)
         {
             _hareket = kernel.Get <IMusteriHareketManager>();
         }
     }
     lock (_clientLock)
     {
         if (_client == null)
         {
             _client = kernel.Get <IClientManager>();
         }
     }
     #endregion
     lock (_hashLock)
     {
         if (_hash == null)
         {
             _hash = kernel.Get <IHashManager>();
         }
     }
     lock (_cariLock)
     {
         if (_cari == null)
         {
             _cari = kernel.Get <ICarilerManager>();
         }
     }
     lock (_smsLock)
     {
         if (_sms == null)
         {
             _sms = kernel.Get <ISMSManager>();
         }
     }
 }
 /// <summary>
 /// 构造函数
 /// </summary>
 public ThirdPartyLoginForTokenController(
     LogInManager logInManager,
     ICacheManager cacheManager,
     ICaptchaManager captchaManager,
     UserManager userManager,
     ISMSManager smsManager,
     QQAuthService qqAuthService,
     WeixinAuthService weixinAuthService,
     WeiboAuthService weiboAuthService,
     AlipayAuthService alipayAuthService
     )
 {
     _logInManager          = logInManager;
     _cacheManager          = cacheManager;
     _captchaManager        = captchaManager;
     LocalizationSourceName = MFConsts.LocalizationSourceName;
     _smsManager            = smsManager;
     _userManager           = userManager;
     _qqAuthService         = qqAuthService;
     _weixinAuthService     = weixinAuthService;
     _weiboAuthService      = weiboAuthService;
     _alipayAuthService     = alipayAuthService;
 }
Пример #12
0
 public InvoiceManager()
 {
     callManager = GetContainer().Resolve <ICallManager>();
     smsManager  = GetContainer().Resolve <ISMSManager>();
     crmManager  = GetContainer().Resolve <ICRMManager>();
 }
Пример #13
0
 public SMSManager(ISMSManager manager)
 {
     _manager = manager;
 }