public UserBP(IPlayerStore playerStore, ISportStore sportStore) { if (playerStore == null) throw new ArgumentNullException("playerStore"); if (sportStore == null) throw new ArgumentNullException("sportStore"); _playerStore = playerStore; _sportStore = sportStore; }
protected override PurchaseHealingCommandHandler CreateSutImpl( IPlayerStore playerStore, IRandom random, IOptions <PurchaseHealingOptions> opts) { return(new PurchaseHealingCommandHandler(playerStore, random, opts)); }
public GameController( ICommandDispatcher dispatcher, IPlayerStore playerStore) { _dispatcher = dispatcher; _playerStore = playerStore; }
private static NewGameCommandHandler CreateSut(IPlayerStore playerStore, InitialPlayerStats options) { var optionsSnapshot = Substitute.For <IOptionsSnapshot <InitialPlayerStats> >(); optionsSnapshot.Value.Returns(options); return(new NewGameCommandHandler(playerStore, optionsSnapshot)); }
public NewGameCommandHandler( IPlayerStore playerStore, IOptions <InitialPlayerStats> options ) { _playerStore = playerStore; _options = options.Value; }
public GameHub( IGroupStore groupStore, IPlayerStore playerStore, IGameEngineService gameEngineService) { _groupStore = groupStore ?? throw new ArgumentNullException(nameof(groupStore)); _playerStore = playerStore ?? throw new ArgumentNullException(nameof(playerStore)); _gameEngineService = gameEngineService ?? throw new ArgumentNullException(nameof(gameEngineService)); }
public AppHub( ILogger <AppHub> logger, IMapper mapper, IPlayerStore playerStore ) { Logger = logger; PlayerStore = playerStore; Mapper = mapper; }
public AttackCommandHandler( IPlayerStore playerStore, IRandom random, IFormulaCalculator calculator, IOptions <AttackOptions> options) : base(playerStore, random) { _calculator = calculator; _options = options.Value; }
public Database(string accountConnection, IAccountStore accountStore, string playerConnection, IPlayerStore playerStore, string guildConnection, IGuildStore guildStore) { _accountStore = accountStore; _playerStore = playerStore; _guildStore = guildStore; _accountStore.Connect(accountConnection); _playerStore.Connect(playerConnection); _guildStore.Connect(guildConnection); }
public MatchBP(IMatchStore matchStore, IPlayerStore playerStore, ITeamStore teamStore, ISportStore sportStore) { if (matchStore == null) throw new ArgumentNullException("matchStore"); if (playerStore == null) throw new ArgumentNullException("playerStore"); if (teamStore == null) throw new ArgumentNullException("teamStore"); if (sportStore == null) throw new ArgumentNullException("sportStore"); _matchStore = matchStore; _playerStore = playerStore; _teamStore = teamStore; _sportStore = sportStore; }
public TournamentBP(IPlayerStore playerStore, ITeamStore teamStore, ISportStore sportStore, ITournamentStore tournamentStore, ITournamentSystemFactory tournamentSystemFactory) { if (playerStore == null) throw new ArgumentNullException("playerStore"); if (teamStore == null) throw new ArgumentNullException("teamStore"); if (sportStore == null) throw new ArgumentNullException("sportStore"); if (tournamentSystemFactory == null) throw new ArgumentNullException("tournamentSystemFactory"); _playerStore = playerStore; _teamStore = teamStore; _sportStore = sportStore; _tournamentStore = tournamentStore; _tournamentSystemFactory = tournamentSystemFactory; }
public PlayerService( IPlayerStore store, IGameStore gameStore, IMapper mapper, IMemoryCache localCache, ITopoMojoApiClient mojo ) { Store = store; GameStore = gameStore; Mapper = mapper; LocalCache = localCache; Mojo = mojo; }
public BotCommandHandler( IPlayerStore playerStore, IRandom random, IFormulaCalculator calculator, IOptions <AttackOptions> attackOptions, IOptions <PurchaseWeaponOptions> purchaseWeaponOptions, IOptions <PurchaseHealingOptions> purchaseHealingOptions ) : base(playerStore, random) { _calculator = calculator; _attackOptions = attackOptions.Value; _purchaseWeaponHandlerOptions = purchaseWeaponOptions.Value; _purchaseHealingHandlerOptions = purchaseHealingOptions.Value; }
private THandler CreateSut( Player player = null, IPlayerStore playerStore = null, IRandom random = null, TOptions options = null) { player = player ?? PlayerFixture.CreateDefaultPlayer(); playerStore = playerStore ?? Substitute.For <IPlayerStore>(); playerStore.GetPlayer().Returns(player); random = random ?? Substitute.For <IRandom>(); var opts = Substitute.For <IOptions <TOptions> >(); opts.Value.Returns(options ?? new TOptions()); return(CreateSutImpl(playerStore, random, opts)); }
private static AttackCommandHandler CreateSut( Player player = null, IPlayerStore playerStore = null, IRandom random = null, IFormulaCalculator calculator = null, AttackOptions options = null) { player = player ?? PlayerFixture.CreateDefaultPlayer(); playerStore = playerStore ?? Substitute.For <IPlayerStore>(); playerStore.GetPlayer().Returns(player); random = random ?? Substitute.For <IRandom>(); calculator = calculator ?? Substitute.For <IFormulaCalculator>(); var optionsSnapshot = Substitute.For <IOptionsSnapshot <AttackOptions> >(); optionsSnapshot.Value.Returns(options ?? new AttackOptions()); return(new AttackCommandHandler(playerStore, random, calculator, optionsSnapshot)); }
public LinePlayerJoinDecorator(ILogLineEventConverter component, IPlayerStore playerStore) { _component = component; _players = playerStore.GetPlayers(); }
public PurchaseArmorCommandHandler( IPlayerStore playerStore, IRandom random, IOptions <PurchaseArmorOptions> options ) : base(playerStore, random) => _options = options.Value;
public Player(IPlayerStore storage, ILogger <PlayerMiddleware> logger) { _storage = storage; _logger = logger; }
protected PlayerCommandHandlerBase(IPlayerStore playerStore, IRandom random) { PlayerStore = playerStore; Random = random; }
public PlayerAnalyzer(IPlayerStore playerStore) { _playerStore = playerStore; }
public PlayerController(IPlayerStore playerStore) { _playerStore = playerStore; }
private void Awake() { _playerStore = FindObjectOfType <PlayerStore>(); _visionObserver = FindObjectOfType <VisionStore>().GetVisionObserver(_playerStore.PlayerUnit); }
public PlayerHub(IPlayerStore playerStore) { PlayerStore = playerStore; }
protected abstract THandler CreateSutImpl( IPlayerStore playerStore, IRandom random, IOptions <TOptions> opts);
public LineGameModeDecorator(ILogLineEventConverter component, IPlayerStore playerStore) { _component = component; _playerStore = playerStore; }
public PlayerValidator( IPlayerStore store ) { _store = store; }
private void Awake() { _playerStore = FindObjectOfType <PlayerStore>(); }