예제 #1
0
 public void SetUp()
 {
     _embeddedContentVisitorFactoryMock = A.Fake <IEmbeddedContentVisitorFactory>();
     _embeddedContetnRegexSettingsMock  = A.Fake <IEmbeddedContentRegexSettings>();
     _textProcessorMock  = A.Fake <ITextProcessor>();
     _settingsBundleMock = A.Fake <ISettingsBundle>();
     _itemFactoryMock    = A.Fake <IDocumentItemFactory>();
 }
예제 #2
0
 public YamlFileParser(IYamlFactory yamlFactory, IFileHelper fielHelper, IEmbeddedContentRegexSettings embeddedContentRegexSettings, IParsingSettings parsingSettings, IParagraphUnitFactory paragraphUnitFactory, ISegmentDataCollector segmentDataCollector)
 {
     _fielHelper  = fielHelper;
     _yamlFactory = yamlFactory;
     _embeddedContentRegexSettings = embeddedContentRegexSettings;
     _parsingSettings      = parsingSettings;
     _paragraphUnitFactory = paragraphUnitFactory;
     _segmentDataCollector = segmentDataCollector;
 }
예제 #3
0
 public void SetUp()
 {
     _yamlTextReaderMock               = A.Fake <IYamlTextReader>();
     _bilingualContentHandlerMock      = A.Fake <IBilingualContentHandler>();
     _embeddedContentRegexSettingsMock = A.Fake <IEmbeddedContentRegexSettings>();
     _parsingSettingsMock              = A.Fake <IParsingSettings>();
     _paragraphUnitFactoryMock         = A.Fake <IParagraphUnitFactory>();
     _propertiesFactoryMock            = A.Fake <IPropertiesFactory>();
     _segmendDataCollectorMock         = A.Fake <ISegmentDataCollector>();
     _itemFactoryMock = A.Fake <IDocumentItemFactory>();
     A.CallTo(() => _itemFactoryMock.PropertiesFactory).Returns(_propertiesFactoryMock);
 }
 public JsonFileParser(IJsonFactory jsonFactory,
                       IFileHelper fileHelper,
                       IEmbeddedContentRegexSettings embeddedContentRegexSettings,
                       IParsingSettings parsingSettings,
                       IParagraphUnitFactory paragraphUnitFactory,
                       ISegmentDataCollector segmentDataCollector)
 {
     _fileHelper  = fileHelper;
     _jsonFactory = jsonFactory;
     _embeddedContentRegexSettings = embeddedContentRegexSettings;
     _parsingSettings      = parsingSettings;
     _paragraphUnitFactory = paragraphUnitFactory;
     _segmentDataCollector = segmentDataCollector;
 }
 public RegexEmbeddedBilingualProcessor(IEmbeddedContentVisitorFactory embeddedContentVisitorFactory, IEmbeddedContentRegexSettings settings, ITextProcessor textProcessor)
 {
     _embeddedContentVisitorFactory = embeddedContentVisitorFactory;
     _settings      = settings;
     _textProcessor = textProcessor;
 }