Ejemplo n.º 1
0
        public void GivenEnoughCredits_WhenBuyingAnApple_AppleIsAdded()
        {
            _shopService.Buy(_interaction);

            _inventoryRepository.Verify(repo => repo.AddItem(_user, "lucky_dice"));
        }
Ejemplo n.º 2
0
        public void GivenEnoughCredits_WhenBuyingAnApple_AppleIsAdded()
        {
            _shopService.Buy(_user, "lucky_dice");

            _inventoryRepository.Verify(repo => repo.AddItem(_user, It.IsAny <LuckyCoin>()));
        }