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;
 }
Exemple #3
0
 public void Add(int fieldIndex, ITextConvertor convertorType, FieldInfo fieldInfo)
 {
     FieldDictionary.Add(fieldIndex, new FieldMapInfo(convertorType, fieldInfo));
 }
Exemple #4
0
 public FieldMapInfo(ITextConvertor convertorType, FieldInfo fieldInfo)
 {
     Convertor = convertorType;
     FieldInfo = fieldInfo;
 }
 protected FieldBaseAttribute(string name, ITextConvertor convertor)
 {
     FieldName = name;
     Convertor = convertor;
 }
 public FieldMapInfo(ITextConvertor convertorType, TypeAccessor typeAccessor, string propertyName)
 {
     Convertor     = convertorType;
     _typeAccessor = typeAccessor;
     _propertyName = propertyName;
 }
Exemple #7
0
 public Field(ITextConvertor convertorType, PropertyInfo propertyInfo)
 {
     Convertor = convertorType;
     FieldInfo = propertyInfo;
 }
 public AmountToTextService(ITextConvertor textConvertor)
 {
     _textConvertor = textConvertor;
 }