Пример #1
0
        public void Setup()
        {
            _userRepository.Setup(repo => repo.GetUser(User)).Returns(_caller);
            _userRepository.Setup(repo => repo.GetUser("ginette")).Returns(_target);

            _channelRepository.Setup(repo => repo.GetGambleChallenge(User)).Returns(new GambleChallenge("testuser", "ginette", 10));

            _casinoCommands = new CasinoCommands(_userRepository.Object, _slack.Object, _channelRepository.Object, _backgroundClient.Object, _itemEventDispatcher.Object, _statsRepository.Object, _randomService.Object, _userService.Object, _creditsRepository.Object);
        }
Пример #2
0
        public void Setup()
        {
            _userRepository.Setup(repo => repo.GetUser(User)).Returns(_user);

            _casinoCommands = new CasinoCommands(_userRepository.Object, _slack.Object, _channelRepository.Object, _backgroundClient.Object, _itemEventDispatcher.Object, _statsRepository.Object, _randomService.Object, _userService.Object);
        }