Exemplo n.º 1
0
        public Bank(INicknameValidator emptyNicknameValidator, IDuplicatedNicknameValidator duplicatedNicknameValidator)
        {
            _emptyNicknameValidator = emptyNicknameValidator;
            _duplicatedNicknameValidator = duplicatedNicknameValidator;

            _customers = new List<Customer>();
            _nicknames = new List<string>();
        }
Exemplo n.º 2
0
        public Bank(INicknameValidator emptyNicknameValidator, IDuplicatedNicknameValidator duplicatedNicknameValidator, 
            MessageGateway messageGateway)
        {
            _emptyNicknameValidator = emptyNicknameValidator;
            _duplicatedNicknameValidator = duplicatedNicknameValidator;
            _messageGateway = messageGateway;

            _customers = new List<Customer>();
            _nicknames = new List<string>();
        }