Exemple #1
0
 public override string ToString()
 {
     return(string.Format("Pin: {0} Code: {1} Result:{2}",
                          SmartCardData.GetPin(Pin),
                          SmartCardData.GetCode(Code),
                          SmartCardData.GetResult(Result)));
 }
Exemple #2
0
        private IResult Handle(ISmartCardData cardData)
        {
            var pin  = SmartCardData.GetPin(cardData.Pin);
            var code = SmartCardData.GetCode(cardData.Code);

            var pinService = _pinServiceFactory
                             .GetPinService(pin);

            if (pinService == null)
            {
                return(SmartCardResult
                       .CreateError(Result.UndeterminedResult));
            }

            return(pinService
                   .Handle(code, _smartCardState, cardData));
        }
Exemple #3
0
 public SmartCardResult(Pin pin, Code code, Result result)
     : this(SmartCardData.GetPin(pin), SmartCardData.GetCode(code), SmartCardData.GetResult(result))
 {
 }