public YiBinWXController(IWechatAppConfigAppService wechatAppConfigAppService,
                                 IOptions <WeChatTenantSetting> settings,
                                 IWeChatOAuthAppService weChatOAuthAppService,
                                 IWeChatUserAppService weChatUserAppService,
                                 IActivityAppService activityAppService,
                                 IActivityGoodsAppService activityGoodsAppService,
                                 IRepository <WeChatUser, Guid> wechatuserRepository,
                                 IActivityFormAppService activityFormAppService,
                                 IActivityBanquetAppService activityBanquetAppService,
                                 IActivityDeliveryInfoAppService activityDeliveryInfoAppService,
                                 IActivityFormLogAppService activityFormLogAppService,
                                 IHostingEnvironment env) : base(wechatAppConfigAppService)
        {
            _settings = settings.Value;
            tenantId  = _settings.YiBin;
            InitAppConfigSetting();

            _weChatOAuthAppService   = weChatOAuthAppService;
            _weChatUserAppService    = weChatUserAppService;
            _activityAppService      = activityAppService;
            _activityGoodsAppService = activityGoodsAppService;
            _weChatOAuthAppService.WechatAppConfig = WechatAppConfig;//注入配置
            _appConfiguration               = env.GetAppConfiguration();
            _wechatuserRepository           = wechatuserRepository;
            _activityFormAppService         = activityFormAppService;
            _activityBanquetAppService      = activityBanquetAppService;
            _activityDeliveryInfoAppService = activityDeliveryInfoAppService;
            _activityFormLogAppService      = activityFormLogAppService;
        }
 public ActivityController(IActivityAppService activityappservice, IAccountAppService accountappservice, IJobAppService jobappservice, IUserAppService userappservice)
 {
     _svcUser = userappservice;
     _svcActivity = activityappservice;
     _svcAccount = accountappservice;
     _svcJob = jobappservice;
 }
Exemple #3
0
 public ApplicantController(
     IApplicationTypeService applicationTypeService,
     IRefIdentityAppService refIdentityService,
     IApplicantService applicantService,
     IDealerAppService dealerApptService,
     IActivityAppService activityAppService,
     IDealerActivityAppService dealerActivityAppService,
     IStationAppService stationAppService,
     IBillAppService billAppService,
     IFinancialYearAppService financialYearAppService,
     UserManager userManager,
     IUserAppService userAppService,
     RoleManager roleManager,
     IEmailSender emailSender
     )
 {
     _applicationTypeService   = applicationTypeService;
     _refIdentityService       = refIdentityService;
     _applicantService         = applicantService;
     _dealerAppService         = dealerApptService;
     _dealerActivityAppService = dealerActivityAppService;
     _activityAppService       = activityAppService;
     _stationAppService        = stationAppService;
     _billAppService           = billAppService;
     _financialYearAppService  = financialYearAppService;
     _userManager    = userManager;
     _userAppService = userAppService;
     _roleManager    = roleManager;
     _emailSender    = emailSender;
 }
        /// <summary>
        ///In constructor, we can get needed classes/interfaces.
        ///They are sent here by dependency injection system automatically.
        /// </summary>
        public DashboardAppService(IJobAppService jobappservice, IActivityAppService activityappservice, UserManager userManager)
        {
            _userManager = userManager;
            _jobappservice = jobappservice;
            _activityappservice = activityappservice;


        }
Exemple #5
0
 public PageAppService(
     IPageRepository pageRepository, UserManager userManager, IStoreAppService storeAppService, ICacheManager cacheManager
     , IActivityAppService activityAppService,
     ICrmBuyerRepository crmBuyerRepository
     )
 {
     _pageRepository     = pageRepository;
     _userManager        = userManager;
     _storeAppService    = storeAppService;
     _cacheManager       = cacheManager;
     _activityAppService = activityAppService;
 }
 public ApplicantController(IApplicantService applicantService, IActivityAppService activityAppService, IBillAppService billAppService, IFinancialYearAppService financialYearAppService, IBillItemAppService billItemAppService, ITransitPass transitPass, IStationAppService stationAppService, ICheckPointTransitPass checkPointTransitPass, IRevenueSourceAppService revenueSourceAppService)
 {
     this.applicantService        = applicantService;
     this.activityAppService      = activityAppService;
     this.billAppService          = billAppService;
     this.financialYearAppService = financialYearAppService;
     this.billItemAppService      = billItemAppService;
     this.transitPass             = transitPass;
     this.stationAppService       = stationAppService;
     this.checkPointTransitPass   = checkPointTransitPass;
     this.revenueSourceAppService = revenueSourceAppService;
 }
 public SYQWXController(IWechatAppConfigAppService wechatAppConfigAppService,
                        IWeChatOAuthAppService weChatOAuthAppService,
                        IWeChatUserAppService weChatUserAppService,
                        IOrderAppService orderAppService,
                        IActivityAppService activityAppService
                        ) : base(wechatAppConfigAppService)
 {
     InitAppConfigSetting();
     _weChatOAuthAppService = weChatOAuthAppService;
     _weChatOAuthAppService.WechatAppConfig = WechatAppConfig;//注入配置
     _weChatUserAppService = weChatUserAppService;
     _orderAppService      = orderAppService;
     _activityAppService   = activityAppService;
 }
 public DealerActivitiesController(
     IBillAppService billAppService,
     IBillItemAppService billItemAppService,
     IDealerAppService dealerAppService,
     IDealerActivityAppService dealerActivityAppService,
     IActivityAppService activityAppService,
     IRevenueSourceAppService revenueSourceAppService
     )
 {
     _dealerAppService         = dealerAppService;
     _dealerActivityAppService = dealerActivityAppService;
     _activityAppService       = activityAppService;
     _billAppService           = billAppService;
     _billItemAppService       = billItemAppService;
     _revenueSourceAppService  = revenueSourceAppService;
 }
        // private readonly IMainRevenueSuorce mainRevenueSuorce;

        public TransitPassController(ITransitPass transitPass, IBillAppService billAppService, IApplicantService applicantService, IBillItemAppService billItemAppService,
                                     IActivityAppService activityAppService,
                                     IRevenueSourceAppService revenueSourceAppService,
                                     ILicenseAppService licenseAppService,
                                     IFinancialYearAppService financialYearAppService,
                                     IStationAppService stationAppService,
                                     IRegionAppService regionAppService,
                                     ICheckPointTransitPass checkPointTransitPass,
                                     IRepository <User, long> userRepository)
        {
            this.transitPass             = transitPass;
            this.billAppService          = billAppService;
            this.applicantService        = applicantService;
            this.billItemAppService      = billItemAppService;
            this.activityAppService      = activityAppService;
            this.revenueSourceAppService = revenueSourceAppService;
            this.licenseAppService       = licenseAppService;
            this.financialYearAppService = financialYearAppService;
            this.stationAppService       = stationAppService;
            this.regionAppService        = regionAppService;
            this.checkPointTransitPass   = checkPointTransitPass;
            _userRepository = userRepository;
            // this.mainRevenueSuorce = mainRevenueSuorce;
        }
 public ActivitysController(IActivityAppService activityAppService, IProjectAppService projectAppService)
 {
     _activityAppService = activityAppService;
     _projectAppService  = projectAppService;
 }
 public ActivitiesController(IActivityAppService activityAppService, IRevenueSourceAppService revenueSourceAppService)
 {
     _activityAppService = activityAppService;
     _revenueSourceAppService = revenueSourceAppService;
 }
Exemple #12
0
 public ActivityAppServiceTests()
 {
     _activityAppService = GetRequiredService <IActivityAppService>();
 }