Exemplo n.º 1
0
        public async Task Given_A_Card_Id_Should_Invoke_CardById_Method_Once()
        {
            // Arrange
            const long cardId = 4322;

            _cardRepository.CardById(Arg.Any <long>()).Returns(new Card());

            // Act
            await _sut.CardById(cardId);

            // Assert
            await _cardRepository.Received(1).CardById(Arg.Is(cardId));
        }