Ejemplo n.º 1
0
        public int Decrement(string key, int count)
        {
            ValidateKeyVal(key);
            var command = new DecrementCommand(count, key);

            return(command.Execute());
        }
Ejemplo n.º 2
0
            void SendDecrementCommand(ISmartCardReader smartCardReader, string description, int value, byte blockNumber)
            {
                var    decrementCommand = new DecrementCommand();
                string input            = decrementCommand.GetApdu(blockNumber, value);
                string output           = ReaderHelper.SendCommand(smartCardReader, input);

                ConsoleWriter.Instance.PrintCommand(description + blockNumber.ToString("X2"), input, output);
            }
Ejemplo n.º 3
0
            void SendDecrementCommand(ISmartCardReader smartCardReader, int value, byte blockNumber)
            {
                var    decrementCommand = new DecrementCommand();
                string input            = decrementCommand.GetApdu(blockNumber, value);
                string output           = ReaderHelper.SendCommand(smartCardReader, input);

                Console.WriteLine("Input: ", input, "\n Output: ", output);
            }
Ejemplo n.º 4
0
        public void TestVerb()
        {
            var command = new DecrementCommand();

            Assert.AreEqual("decr", command.Verb);
        }