Ejemplo n.º 1
0
 public EnigmaI()
 {
     _entryWheel  = new EntryWheel();
     _plugBoard   = new PlugBoard();
     _fastRotor   = new RotorI();
     _middleRotor = new RotorII();
     _slowRotor   = new RotorIII();
     _reflector   = new ReflectorB();
 }
Ejemplo n.º 2
0
        public EnigmaI(IRotor slowRotor, IRotor middleRotor, IRotor fastRotor, IReflector reflector)
        {
            _entryWheel = new EntryWheel();
            _plugBoard  = new PlugBoard();

            _slowRotor   = slowRotor;
            _middleRotor = middleRotor;
            _fastRotor   = fastRotor;

            _reflector = reflector;
        }