Exemple #1
0
 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);
 }
Exemple #3
0
 public PlayerService(ITurnService turnService,
                      IMessageService messageService,
                      INameService nameService)
 {
     _turnService    = turnService;
     _messageService = messageService;
     _nameService    = nameService;
 }
Exemple #4
0
        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);
        }
Exemple #5
0
 public ActivityController(ITurnService turnService, IResourceAuthorizationService resourceAuthorizationService)
 {
     _turnService = turnService;
     _resourceAuthorizationService = resourceAuthorizationService;
 }
 public ActivitiesController(ITurnService turnService, IMapper mapper)
 {
     _turnService = turnService;
     _mapper      = mapper;
 }
Exemple #7
0
 public Computer(ITurnService turnService) => _turnService = turnService;
 public GameService(ITurnService turnService, IBoardService boardService)
 {
     _turnService  = turnService;
     _boardService = boardService;
 }
Exemple #9
0
 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;
 }
Exemple #12
0
 public TurnHandler(ITurnService service)
 {
     Service = service;
 }