Ejemplo n.º 1
0
        public string Convert(ITextConvertor convertor, string rawText)
        {
            ParagraphReader reader    = new ParagraphReader();
            ParagraphText   paragraph = reader.ReadParagraph(rawText);

            return(convertor.Convert(paragraph));
        }
 public StressTestHandler(int numberOfThreads, string path, ITextConvertor textConvertor)
 {
     this.textConvertor = textConvertor;
     NumberOfThreads    = numberOfThreads;
     Path        = path;
     ZkActions   = MainWindow.ZkActions;
     KeepRunning = true;
 }
Ejemplo n.º 3
0
 public void Add(int fieldIndex, ITextConvertor convertorType, FieldInfo fieldInfo)
 {
     FieldDictionary.Add(fieldIndex, new FieldMapInfo(convertorType, fieldInfo));
 }
Ejemplo n.º 4
0
 public FieldMapInfo(ITextConvertor convertorType, FieldInfo fieldInfo)
 {
     Convertor = convertorType;
     FieldInfo = fieldInfo;
 }
Ejemplo n.º 5
0
 protected FieldBaseAttribute(string name, ITextConvertor convertor)
 {
     FieldName = name;
     Convertor = convertor;
 }
Ejemplo n.º 6
0
 public FieldMapInfo(ITextConvertor convertorType, TypeAccessor typeAccessor, string propertyName)
 {
     Convertor     = convertorType;
     _typeAccessor = typeAccessor;
     _propertyName = propertyName;
 }
Ejemplo n.º 7
0
 public Field(ITextConvertor convertorType, PropertyInfo propertyInfo)
 {
     Convertor = convertorType;
     FieldInfo = propertyInfo;
 }
 public AmountToTextService(ITextConvertor textConvertor)
 {
     _textConvertor = textConvertor;
 }