Exemplo n.º 1
0
        public async Task Should_Invoke_GetTipsByCardId_Once()
        {
            // Arrange
            const int cardId = 90;

            _tipRepository.GetByCardId(Arg.Any <long>()).Returns(new List <TipSection>());

            // Act
            await _sut.GetTipsByCardId(cardId);

            // Assert
            await _tipRepository.Received(1).GetByCardId(Arg.Any <long>());
        }
Exemplo n.º 2
0
 public Task <IList <TipSection> > GetTipsByCardId(long cardId)
 {
     return(_tipRepository.GetByCardId(cardId));
 }