Ejemplo n.º 1
0
 public ItemService(IRepoServiceFactory repoServiceFactory)
 {
     _matchRepoService                   = repoServiceFactory.MatchRepoService;
     _betRepoService                     = repoServiceFactory.BetRepoService;
     _itemRepoSerive                     = repoServiceFactory.ItemRepoService;
     _itemDescriptionRepoService         = repoServiceFactory.ItemDescriptionRepoService;
     _itemBettedRepoService              = repoServiceFactory.ItemBettedRepoService;
     _itemsInOfferTransactionRepoService = repoServiceFactory.ItemInOfferTransactionRepoService;
     _offerTransactionRepoService        = repoServiceFactory.OfferTranascrionRepoService;
     _coinFlipMatchRepoService           = repoServiceFactory.CoinFlipMatchRepoService;
     _gameModeRepoService                = repoServiceFactory.GameModeRepoService;
 }
Ejemplo n.º 2
0
        public MatchManagerTest()
        {
            _fakedRepoServiceFactory     = A.Fake <IRepoServiceFactory>();
            _fakeMatchRepoServicey       = A.Fake <IMatchRepoService>();
            _fakeHashService             = A.Fake <IHashService>();
            _fakeRandomService           = A.Fake <IRandomService>();
            _fakedMatchHub               = A.Fake <IMatchHubConnections>();
            _fakedBetHub                 = A.Fake <IBetHubConnections>();
            _fakeBetService              = A.Fake <IBetService>();
            _fakedGameModeSettingService = A.Fake <IGameModeSettingService>();

            A.CallTo(() => _fakedRepoServiceFactory.MatchRepoService).Returns(_fakeMatchRepoServicey);
        }
Ejemplo n.º 3
0
 protected JackpotMatchService
 (
     IRepoServiceFactory repoServiceFactory,
     IBetService betService,
     IHashService hashService,
     IRandomService randomService
 )
 {
     _matchRepoService   = repoServiceFactory.MatchRepoService;
     _repoServiceFactory = repoServiceFactory;
     _betService         = betService;
     _hashService        = hashService;
     _randomService      = randomService;
 }
Ejemplo n.º 4
0
 public RepoServiceFactory
 (
     IBetRepoService betRepoService,
     IItemDescriptionRepoService descriptionRepoService,
     IItemBettedRepoService itemBettedRepoService,
     IUserRepoService userRepoService,
     IMatchRepoService matchRepoService,
     IItemRepoService itemRepoService,
     IBotRepoService botRepoService,
     IItemInOfferTransactionRepoService inOfferTransactionRepoService,
     IOfferTranascrionRepoService offerTranascrionRepoService,
     ISettingRepoService settingRepoService,
     IRakeItemRepoService rakeItemRepoService,
     IStaffRepoService staffRepoService,
     ILevelRepoService levelRepoService,
     IGameModeRepoService gameModeRepoService,
     IJackpotSettingRepo jackpotSettingRepo,
     ICoinFlipMatchRepoService coinFlipMatchRepoService)
 {
     ItemInOfferTransactionRepoService = inOfferTransactionRepoService;
     OfferTranascrionRepoService       = offerTranascrionRepoService;
     SettingRepoService         = settingRepoService;
     RakeItemRepoService        = rakeItemRepoService;
     StaffRepoService           = staffRepoService;
     LevelRepoService           = levelRepoService;
     GameModeRepoService        = gameModeRepoService;
     JackpotSettingRepo         = jackpotSettingRepo;
     CoinFlipMatchRepoService   = coinFlipMatchRepoService;
     BetRepoService             = betRepoService;
     ItemDescriptionRepoService = descriptionRepoService;
     ItemBettedRepoService      = itemBettedRepoService;
     UserRepoService            = userRepoService;
     MatchRepoService           = matchRepoService;
     ItemRepoService            = itemRepoService;
     BotRepoService             = botRepoService;
 }
Ejemplo n.º 5
0
        public ItemServiceTest()
        {
            _matchRepoService                   = A.Fake <IMatchRepoService>();
            _betRepoService                     = A.Fake <IBetRepoService>();
            _itemRepoService                    = A.Fake <IItemRepoService>();
            _descriptionRepoService             = A.Fake <IItemDescriptionRepoService>();
            _itemBettedRepoSerivce              = A.Fake <IItemBettedRepoService>();
            _offerTransactionRepoService        = A.Fake <IOfferTranascrionRepoService>();
            _itemsInOfferTransactionRepoService = A.Fake <IItemInOfferTransactionRepoService>();
            _fakedCoinFlipService               = A.Fake <ICoinFlipMatchRepoService>();
            _fakedUserRepoService               = A.Fake <IUserRepoService>();


            _fakedRepoService = A.Fake <IRepoServiceFactory>();
            A.CallTo(() => _fakedRepoService.MatchRepoService).Returns(_matchRepoService);
            A.CallTo(() => _fakedRepoService.BetRepoService).Returns(_betRepoService);
            A.CallTo(() => _fakedRepoService.ItemRepoService).Returns(_itemRepoService);
            A.CallTo(() => _fakedRepoService.ItemDescriptionRepoService).Returns(_descriptionRepoService);
            A.CallTo(() => _fakedRepoService.ItemBettedRepoService).Returns(_itemBettedRepoSerivce);
            A.CallTo(() => _fakedRepoService.OfferTranascrionRepoService).Returns(_offerTransactionRepoService);
            A.CallTo(() => _fakedRepoService.ItemInOfferTransactionRepoService).Returns(_itemsInOfferTransactionRepoService);
            A.CallTo(() => _fakedRepoService.CoinFlipMatchRepoService).Returns(_fakedCoinFlipService);
            A.CallTo(() => _fakedRepoService.UserRepoService).Returns(_fakedUserRepoService);
        }