public Game(IEnumerable <IPlayer> players, IBoard board, IDice dice, ITurnService turnService) { this.board = board; this.dice = dice; this.turnService = turnService; this.playerOrder = ShufflePlayers(players); }
public void Setup() { _inputService = new Mock <IInputService>(); _resultService = new Mock <IResultService>(); _consoleWrapper = new Mock <IConsoleWrapper>(); _turnService = new TurnService(_inputService.Object, _resultService.Object, _consoleWrapper.Object); }
public PlayerService(ITurnService turnService, IMessageService messageService, INameService nameService) { _turnService = turnService; _messageService = messageService; _nameService = nameService; }
public TurnServiceTests() { fakeDice = new FakeDice(); fakeBailAdvisor = new FakeBailAdvisor(); board = new Board(fakeDice); moveService = new MoveService(board); player = new Player("horse"); var mortgageBroker = new MortgageBroker(); var mortgageAdvisor = new MortgageAdvisor(); var mortgageService = new MortgageService(board, mortgageAdvisor, mortgageBroker); turnService = new TurnService(moveService, mortgageService, fakeBailAdvisor); }
public ActivityController(ITurnService turnService, IResourceAuthorizationService resourceAuthorizationService) { _turnService = turnService; _resourceAuthorizationService = resourceAuthorizationService; }
public ActivitiesController(ITurnService turnService, IMapper mapper) { _turnService = turnService; _mapper = mapper; }
public Computer(ITurnService turnService) => _turnService = turnService;
public GameService(ITurnService turnService, IBoardService boardService) { _turnService = turnService; _boardService = boardService; }
public Human(ITurnService turnService) => _turnService = turnService;
public RoundCardEffectService(ICardEffectService cardEffectService, ITurnService turnService) { _cardEffectService = cardEffectService; _turnService = turnService; }
public RoundService(ITurnService turnService, IRoundCardEffectService roundCardEffectService) { _turnService = turnService; _roundCardEffectService = roundCardEffectService; }
public TurnHandler(ITurnService service) { Service = service; }