예제 #1
0
 public ArabianToRomanNumberConverter(IFactory <int, IDecoder <int, string> > factory,
                                      IConverter converter,
                                      RomanNumber.RomanNumberBuilder romanNumberBuilder)
 {
     _converter          = converter;
     _factoryMethod      = arg => factory.Create(arg);
     _romanNumberBuilder = romanNumberBuilder;
 }
예제 #2
0
 public ArabianToRomanNumberConverter(Func <int, IDecoder <int, string> > factoryMethod,
                                      IConverter converter,
                                      RomanNumber.RomanNumberBuilder romanNumberBuilder)
 {
     _converter          = converter;
     _factoryMethod      = factoryMethod;
     _romanNumberBuilder = romanNumberBuilder;
 }