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>()); }