public void Execute(LowLevelCardReader lowLevelCardReader) { if (lowLevelCardReader == null) { throw new ArgumentNullException("lowLevelCardReader"); } lowLevelCardReader.SetBuzzerOutputForCardDetection(Card.Card, ShouldBuzzWhenCardDetected); }
public void DisableDefaultBuzzer() { // arrange if (_card == null) { _card = _reader.Connect(GetCardreaderName()).ConnectedCard; } // act var operationResult = _reader.SetBuzzerOutputForCardDetection(_card, false); Assert.IsTrue(operationResult.IsCompletelySuccessful); }