public async Task Should_Invoke_GetByCardId_Once() { // Arrange const int cardId = 90; _rulingRepository.GetByCardId(Arg.Any <long>()).Returns(new List <RulingSection>()); // Act await _sut.GetRulingsByCardId(cardId); // Assert await _rulingRepository.Received(1).GetByCardId(Arg.Any <long>()); }