Exemplo n.º 1
0
        public async Task WhenStealingSucceed_AmountIsRemovedFromTheTarget()
        {
            _randomService.Setup(rnd => rnd.RollAgainstOpponent(It.IsAny <double>(), It.IsAny <double>())).Returns(true);

            await _combatService.Steal(_user, _target, Channel);

            _userRepository.Verify(repo => repo.RemoveCredits("robert", 1));
        }