示例#1
0
        public TenantRegistrationAppService(
            IMultiTenancyConfig multiTenancyConfig,
            IRecaptchaValidator recaptchaValidator,
            EditionManager editionManager,
            IAppNotifier appNotifier,
            ILocalizationContext localizationContext,
            TenantManager tenantManager,
            ISubscriptionPaymentRepository subscriptionPaymentRepository)
        {
            _multiTenancyConfig            = multiTenancyConfig;
            _recaptchaValidator            = recaptchaValidator;
            _editionManager                = editionManager;
            _appNotifier                   = appNotifier;
            _localizationContext           = localizationContext;
            _tenantManager                 = tenantManager;
            _subscriptionPaymentRepository = subscriptionPaymentRepository;

            AppUrlService = NullAppUrlService.Instance;
        }
示例#2
0
 public PaymentController(
     IPaymentAppService paymentAppService,
     ITenantRegistrationAppService tenantRegistrationAppService,
     TenantManager tenantManager,
     EditionManager editionManager,
     IWebUrlService webUrlService,
     ISubscriptionPaymentRepository subscriptionPaymentRepository,
     UserClaimsPrincipalFactory <User, Role> userClaimsPrincipalFactory,
     UserManager userManager,
     SignInManager signInManager)
 {
     _paymentAppService            = paymentAppService;
     _tenantRegistrationAppService = tenantRegistrationAppService;
     _tenantManager  = tenantManager;
     _editionManager = editionManager;
     _webUrlService  = webUrlService;
     _subscriptionPaymentRepository = subscriptionPaymentRepository;
     _userClaimsPrincipalFactory    = userClaimsPrincipalFactory;
     _userManager   = userManager;
     _signInManager = signInManager;
 }
        public TenantManager(ITenantRepository tenantRepository,
                             ICompanyRepository companyRepository,
                             IBranchRepository branchRepository,
                             ISupplierRepository supplierRepository,
                             IWarehouseRepository warehouseRepository,
                             ISubscriptionRepository subscriptionRepository,
                             IEditionRepository editionRepository,
                             ICompanySettingsRepository companySettingsRepository,
                             ISubscriptionPaymentRepository subscriptionPaymentRepository,
                             ISmsService smsService,
                             ICustomerRepository customerRepository,

                             IUserService userService,
                             RoleManager roleManager,
                             IEmployeeRepository employeeRepository,
                             ISecurityRepository <Role, string> roleRepository)
        {
            _tenantRepository              = tenantRepository;
            _companyRepository             = companyRepository;
            _branchRepository              = branchRepository;
            _supplierRepository            = supplierRepository;
            _warehouseRepository           = warehouseRepository;
            _subscriptionRepository        = subscriptionRepository;
            _editionRepository             = editionRepository;
            _companySettingsRepository     = companySettingsRepository;
            _subscriptionPaymentRepository = subscriptionPaymentRepository;
            _smsService = smsService;

            _userService        = userService;
            _roleManager        = roleManager;
            _userManager        = HttpContext.Current?.GetOwinContext()?.GetUserManager <UserManager>();
            _employeeRepository = employeeRepository;
            _roleRepository     = roleRepository;
            _customerRepository = customerRepository;

            var tenantId = HttpContext.Current?.Request.Headers["TenantId"];

            _userManager?.SetTenantId(string.IsNullOrWhiteSpace(tenantId) ? null : tenantId);
        }
 public TenantRegistrationAppService_Tests()
 {
     RegisterFakePaymentCache();
     _tenantRegistrationAppService  = Resolve <ITenantRegistrationAppService>();
     _subscriptionPaymentRepository = Resolve <ISubscriptionPaymentRepository>();
 }
示例#5
0
 public IncomeStatisticsService(ISubscriptionPaymentRepository subscriptionPaymentRepository)
 {
     _subscriptionPaymentRepository = subscriptionPaymentRepository;
 }