Esempio n. 1
0
        public AuthenticationResult AuthenticateViaCardAndPin(string cardNumber, string pin)
        {
            var cardAuthenticator = new CardAuthenticator();

            var authenticationResult = cardAuthenticator.ValidateCardAndPin(cardNumber, pin);

            return(authenticationResult);
        }
Esempio n. 2
0
 public ATMManager(BankCard enterredCard, IEnumerable <BankCard> cardRepository)
 {
     _cardRepository = cardRepository.ToList();
     _authenticator  = new CardAuthenticator(cardRepository);
     IsAuthenticated = _authenticator.Authenticate(enterredCard);
 }