Ejemplo n.º 1
0
 public void SetUp()
 {
     _digitWriter    = new DigitWriter(BritishNumbersDictionary.DigitDictionary());
     _tensWriter     = new TensWriter(BritishNumbersDictionary.TensDictionary(), _digitWriter);
     _hundredsWriter = new HundredsWriter(_tensWriter);
     _unitWriter     = new UnitWriter(BritishNumbersDictionary.UnitsDictionary(), _hundredsWriter);
 }
 public INumberWriter CreateMillionsDigitWriter()
 {
     return(new UnitWriter(BritishNumbersDictionary.UnitsDictionary(), CreateHundredsDigitWriter()));
 }