Exemple #1
0
        public AuthenticationResult AuthenticateViaCardAndPin(string cardNumber, string pin)
        {
            var cardAuthenticator = new CardAuthenticator();

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

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