コード例 #1
0
 public RaceService(IMapper mapper, IRaceRepository raceRepository, IBonusService bonusService,
                    IAbilityService abilityService) : base(mapper)
 {
     _raceRepository = raceRepository;
     _bonusService   = bonusService;
     _abilityService = abilityService;
 }
コード例 #2
0
ファイル: BonusesView.cs プロジェクト: kicholen/SpaceShooter
 public BonusesView(Pool pool, IViewService viewService, IBonusService bonusService)
     : base("EditorView/Bonus/BonusesView")
 {
     this.pool = pool;
     this.viewService = viewService;
     this.bonusService = bonusService;
 }
コード例 #3
0
 public EditModel(IRaceService raceService, ICoreLogic coreLogic, IAbilityService abilityService,
                  IBonusService bonusService, IMajorService majorService) : base(majorService)
 {
     _raceService    = raceService;
     _coreLogic      = coreLogic;
     _abilityService = abilityService;
     _bonusService   = bonusService;
 }
コード例 #4
0
 public EditModel(IWeaponService weaponService, IBonusService bonusService, ISkillService skillService,
                  ICoreLogic coreLogic, IMajorService majorService) : base(majorService)
 {
     _weaponService = weaponService;
     _bonusService  = bonusService;
     _skillService  = skillService;
     _coreLogic     = coreLogic;
 }
コード例 #5
0
 public BonusController(IMapper mapper, ILogFactory logFactory, IBonusService bonusService,
                        IRequestContext requestContext)
 {
     _mapper         = mapper;
     _bonusService   = bonusService;
     _requestContext = requestContext;
     _log            = logFactory.CreateLog(this);
 }
コード例 #6
0
ファイル: BonusController.cs プロジェクト: giagiigi/ChemCloud
 public BonusController()
 {
     _siteSetting = ServiceHelper.Create <ISiteSettingService>().GetSiteSettings();
     if (string.IsNullOrWhiteSpace(_siteSetting.WeixinAppId) || string.IsNullOrWhiteSpace(_siteSetting.WeixinAppSecret))
     {
         throw new HimallException("未配置公众号参数");
     }
     _bonusService = ServiceHelper.Create <IBonusService>();
 }
コード例 #7
0
 public BonusController(IBonusService iBonusService, ISiteSettingService iSiteSettingService)
 {
     _iBonusService       = iBonusService;
     _iSiteSettingService = iSiteSettingService;
     this._siteSetting    = _iSiteSettingService.GetSiteSettings();
     if (string.IsNullOrWhiteSpace(this._siteSetting.WeixinAppId) || string.IsNullOrWhiteSpace(this._siteSetting.WeixinAppSecret))
     {
         throw new HimallException("未配置公众号参数");
     }
 }
コード例 #8
0
 public EmailServices(IOptions <EmailSettings> emailSettings,
                      IUserService userService,
                      IVendorService vendorService,
                      IBonusService bonusService)
 {
     _emailSettings = emailSettings;
     _vendorService = vendorService;
     _userService   = userService;
     _bonusService  = bonusService;
 }
コード例 #9
0
        public BonusController(IBonusService iBonusService)
        {
            _iBonusService = iBonusService;
            var siteSetting = SiteSettingApplication.SiteSettings;

            if (string.IsNullOrWhiteSpace(siteSetting.WeixinAppId) || string.IsNullOrWhiteSpace(siteSetting.WeixinAppSecret))
            {
                throw new MallException("未配置公众号参数");
            }
        }
コード例 #10
0
        public ScratchCardController(IBonusService iBonusService, IMemberIntegralService iMemberIntegralService)
        {
            _iBonusService          = iBonusService;
            _iMemberIntegralService = iMemberIntegralService;
            var siteSetting = SiteSettingApplication.SiteSettings;

            if (string.IsNullOrWhiteSpace(siteSetting.WeixinAppId) || string.IsNullOrWhiteSpace(siteSetting.WeixinAppSecret))
            {
                throw new MallException("未配置公众号参数");
            }
        }
コード例 #11
0
        public BonusServiceTests()
        {
            var mockMapper = new MapperConfiguration(cfg =>
            {
                cfg.AddProfile(new AutoMapperProfile(3));
            });

            var mapper = mockMapper.CreateMapper();

            _bonusService = new BonusService(_partnersIntegrationClientMock.Object, mapper, EmptyLogFactory.Instance);
        }
コード例 #12
0
 public BusinessmanBonusAccrualDetailsViewModel(IMvxNavigationService navigationService,
                                                ICustomerService customerService,
                                                IServicesService servicesServices,
                                                IBonusService bonusService,
                                                IProfileService profileService)
 {
     _navigationService = navigationService;
     _customerService   = customerService;
     _servicesServices  = servicesServices;
     _bonusService      = bonusService;
     _profileService    = profileService;
 }
コード例 #13
0
 public RegisterActivityController(
     IMemberService iMemberService,
     IMemberInviteService iMemberInviteService,
     IMemberIntegralService iMemberIntegralService,
     IMemberIntegralConversionFactoryService iMemberIntegralConversionFactoryService,
     IBonusService iBonusService,
     IMessageService iMessageService
     )
 {
     _iMessageService        = iMessageService;
     _iMemberInviteService   = iMemberInviteService;
     _iMemberIntegralService = iMemberIntegralService;
 }
コード例 #14
0
 public RegisterController(
     IMemberService iMemberService,
     IBonusService iBonusService,
     IMessageService iMessageService,
     ISystemAgreementService iSystemAgreementService,
     IManagerService iManagerService
     )
 {
     _iMemberService          = iMemberService;
     _iBonusService           = iBonusService;
     _iMessageService         = iMessageService;
     _iSystemAgreementService = iSystemAgreementService;
     _iManagerService         = iManagerService;
 }
コード例 #15
0
 public TemplateVisualizationAjaxController(
     IBonusService iBonusService,
     ITopicService iTopicService,
     ICouponService iCouponService,
     ILimitTimeBuyService iLimitTimeBuyService,
     IProductService iProductService,
     IPhotoSpaceService iPhotoSpaceService)
 {
     _iBonusService        = iBonusService;
     _iTopicService        = iTopicService;
     _iCouponService       = iCouponService;
     _iLimitTimeBuyService = iLimitTimeBuyService;
     _iProductService      = iProductService;
     _iPhotoSpaceService   = iPhotoSpaceService;
 }
コード例 #16
0
 public TicketService(
     IBonusService bonusService,
     IUnitOfWork unitOfWork,
     IWalletService walletService,
     ICurrentUserAccessor currentUser,
     IDataProvider dataProvider,
     IMapper mapper)
 {
     _bonusService  = bonusService;
     _unitOfWork    = unitOfWork;
     _walletService = walletService;
     _currentUser   = currentUser;
     _dataProvider  = dataProvider;
     _mapper        = mapper;
 }
コード例 #17
0
 public WXApiController(
     IWXCardService iWXCardService,
     IBonusService iBonusService,
     IVShopService iVShopService,
     IWXApiService iWXApiService,
     ILimitTimeBuyService iLimitTimeBuyService,
     IWXMsgTemplateService iWXMsgTemplateService
     )
 {
     _iWXCardService        = iWXCardService;
     _iBonusService         = iBonusService;
     _iVShopService         = iVShopService;
     _iWXApiService         = iWXApiService;
     _iLimitTimeBuyService  = iLimitTimeBuyService;
     _iWXMsgTemplateService = iWXMsgTemplateService;
 }
コード例 #18
0
 public RegisterActivityController(
     IMemberService iMemberService,
     ISiteSettingService iSiteSettingService,
     IMemberInviteService iMemberInviteService,
     IMemberIntegralService iMemberIntegralService,
     IMemberIntegralConversionFactoryService iMemberIntegralConversionFactoryService,
     IBonusService iBonusService,
     IMessageService iMessageService
     )
 {
     _iMessageService        = iMessageService;
     _iSiteSettingService    = iSiteSettingService;
     _iMemberInviteService   = iMemberInviteService;
     _iMemberIntegralService = iMemberIntegralService;
     this._siteSetting       = _iSiteSettingService.GetSiteSettings();
 }
コード例 #19
0
ファイル: UsersController.cs プロジェクト: bpasha7/MyClients
 public UsersController(IBonusService bonusService, IUserService userService, IOrderService orderService, IMapper mapper, IOptions <AppSettings> appSettings, ILoggerFactory loggerFactory, INotificationService notificationService)
 {
     try
     {
         _userService         = userService;
         _orderService        = orderService;
         _bonusService        = bonusService;
         _mapper              = mapper;
         _appSettings         = appSettings.Value;
         _logger              = loggerFactory.CreateLogger(typeof(UsersController));
         _notificationService = notificationService;
     }
     catch (Exception ex)
     {
         _logger.LogCritical($"{ex}");
     }
 }
コード例 #20
0
        public WXApiController(
            ISiteSettingService iSiteSettingService,
            IWXCardService iWXCardService,
            IBonusService iBonusService,
            IVShopService iVShopService,
            IWXApiService iWXApiService,
            ILimitTimeBuyService iLimitTimeBuyService
            )
        {
            _iSiteSettingService = iSiteSettingService;
            _iWXCardService = iWXCardService;
            _iBonusService = iBonusService;
            _iVShopService = iVShopService;
            _iWXApiService = iWXApiService;
            _iLimitTimeBuyService = iLimitTimeBuyService;

        }
コード例 #21
0
 /// <summary>
 /// 发送关注红包
 /// </summary>
 private ActionResult SendAttentionToUser(IRequestMessageBase requestBaseMsg)
 {
     string msg = "";
     try
     {
         IBonusService bonusService = _iBonusService;
         Log.Debug("关注红包openId:" + requestBaseMsg.FromUserName);
         msg = bonusService.Receive(requestBaseMsg.FromUserName);
         if (!string.IsNullOrEmpty(msg))
         {
             string result = DealTextMsg(requestBaseMsg, msg);
             return new XmlResult(result);
         }
     }
     catch (Exception e)
     {
         Log.Info("关注红包出错:", e);
     }
     return Content("");
 }
コード例 #22
0
    public void SetUp()
    {
        //Mocking the interfaces
//		_bonusService_nonVip = Substitute.For<IBonusService>();
//		_bonusService_Vip = Substitute.For<IBonusService>();
//		 _player = Substitute.For<IPlayer>();
//		 _bonus = Substitute.For<IBonusStoreReader>();
//		 _bonus.GetBonus(BonusType.CashbackBonus);

        _player = PlayerFactory.Create("ebfe61bf5740b4a08baf561df9fdda27f", "12345", "12345678", 7869000000000, true,
                                       "*****@*****.**");

        //Object creation for BonusServiceFactory and PlayFactor
//		BonusServiceObject = new BonusServiceFactory();
//		BonusService.Create(null);
        _bonusService_nonVip = BonusServiceFactory.Create();
        _bonusService_Vip    = BonusServiceFactory.Create(_player);
        //_player= PlayerFactory.Create();
        //Player = new PlayerFactory();
//		Player = Substitute.For<PlayerFactory>();
    }
コード例 #23
0
 public GameService(GameModuleCollection gameModules,
                    IUserService userService,
                    IBonusService bonusService,
                    IPayoutService payoutService,
                    IGameHistoryService gameHistoryService,
                    IGameTransactionService transactionService,
                    IDistributedCache cache,
                    CachedSettings cachedSettings,
                    IValidationStrategy validator,
                    ILogger <GameService> logger)
 {
     this.gameModules        = gameModules;
     this.userService        = userService;
     this.bonusService       = bonusService;
     this.payoutService      = payoutService;
     this.gameHistoryService = gameHistoryService;
     this.transactionService = transactionService;
     this.cache          = cache;
     this.cachedSettings = cachedSettings;
     this.validator      = validator;
     this.logger         = logger;
 }
コード例 #24
0
 public EditModel(IBonusService bonusService, ICoreLogic coreLogic, IBranchService branchService, IMajorService majorService) : base(majorService)
 {
     _bonusService  = bonusService;
     _coreLogic     = coreLogic;
     _branchService = branchService;
 }
コード例 #25
0
 public BonusController(ILogger <BonusController> logger, IBonusService BonusService)
 {
     _logger       = logger;
     _BonusService = BonusService;
 }
コード例 #26
0
ファイル: BonusResolver.cs プロジェクト: EXAN7742/BonusPlus
 public BonusResolver(IVendorService vendorService, IBonusService bonusService, IMapper mapper)
 {
     _vendorService = vendorService;
     _bonusService  = bonusService;
     _mapper        = mapper;
 }
コード例 #27
0
 public BonusesController(IBonusService bonusService, IMapper mapper)
 {
     _bonusService = bonusService;
     _mapper       = mapper;
 }
コード例 #28
0
 public BonusController(IBonusService iBonusService)
 {
     _iBonusService = iBonusService;
 }
コード例 #29
0
 public HutController(IBonusService bonusService)
 {
     this.bonusService = bonusService;
 }
コード例 #30
0
 public ManagerType(IBonusService service) : base(0, "Manager")
 {
     this.service = service;
 }
コード例 #31
0
 public IndexModel(IBonusService bonusService, IMajorService majorService) : base(majorService)
 {
     _bonusService = bonusService;
 }
コード例 #32
0
 private void createServices()
 {
     timeService = new TimeService();
     eventService = new EventService();
     uiFactoryService = new UIFactoryService();
     wwwService = new FakeWwwService();//controller.GameObject.AddComponent<WwwService>();
     viewService = new ViewService(eventService, uiFactoryService);
     loadService = new LoadService(eventService);
     gameService = new GameService(pool, viewService);
     pathService = new PathService(pool, wwwService, eventService);
     levelService = new LevelService(wwwService, eventService);
     enemyService = new EnemyService(pool, wwwService, eventService);
     bonusService = new BonusService(pool, wwwService, eventService);
     difficultyService = new DifficultyService(pool, wwwService, eventService);
     infoService = new InfoService(viewService, uiFactoryService, eventService);
     settingsService = new SettingsService(pool);
     translationService = new TranslationService(settingsService);
     languageService = new LanguageService(wwwService, eventService);
     analyticsService = new AnalyticsService(settingsService);
     shipService = new ShipService(timeService, eventService);
     gamerService = new GamerService(eventService);
     currencyService = new CurrencyService(eventService, gamerService);
     iapService = new IAPService(eventService);
     adService = new AdService(currencyService);
     shopService = new ShopService(currencyService, eventService, iapService);
     updateables.Add(infoService);
 }