static InfoboxParserTests()
 {
     _mockedCommons = Commons.Instance;
     _mockedSpecialBuildingNameHelper = new SpecialBuildingNameHelper();
     _mockedTitleParserSingle         = new TitleParserSingle(_mockedCommons, _mockedSpecialBuildingNameHelper);
     _mockedRegionHelper = new RegionHelper();
 }
 private IParserMultipleRegions GetParser(ICommons commonsToUse = null,
                                          ISpecialBuildingNameHelper specialBuildingNameHelperToUse = null,
                                          IRegionHelper regionHelperToUse = null)
 {
     return(new ParserMultipleRegions(commonsToUse ?? _mockedCommons,
                                      specialBuildingNameHelperToUse ?? _mockedSpecialBuildingNameHelper,
                                      regionHelperToUse ?? _mockedRegionHelper));
 }
 private InfoboxParser GetParser(ICommons commonsToUse = null,
                                 ITitleParserSingle titleParserSingleToUse = null,
                                 ISpecialBuildingNameHelper specialBuildingNameHelperToUse = null,
                                 IRegionHelper regionHelperToUse = null)
 {
     return(new InfoboxParser(commonsToUse ?? _mockedCommons,
                              titleParserSingleToUse ?? _mockedTitleParserSingle,
                              specialBuildingNameHelperToUse ?? _mockedSpecialBuildingNameHelper,
                              regionHelperToUse ?? _mockedRegionHelper));
 }
        static ParserMultipleRegionsTests()
        {
            _mockedCommons = Commons.Instance;
            _mockedSpecialBuildingNameHelper = new SpecialBuildingNameHelper();
            _mockedRegionHelper = new RegionHelper();

            _regionList2Regions = new List <string> {
                "A", "B"
            };
            _regionList3Regions = new List <string> {
                "A", "B", "C"
            };
        }
Esempio n. 5
0
        public InfoboxParser(ICommons commonsToUse, ITitleParserSingle titleParserSingleToUse, ISpecialBuildingNameHelper specialBuildingNameHelperToUse, IRegionHelper regionHelperToUse)
        {
            _commons                   = commonsToUse;
            _titleParserSingle         = titleParserSingleToUse;
            _specialBuildingNameHelper = specialBuildingNameHelperToUse;
            _regionHelper              = regionHelperToUse;

            parserSingleRegion       = new ParserSingleRegion(_commons, _titleParserSingle);
            parserOldAndNewWorld     = new ParserOldAndNewWorld(_commons, _specialBuildingNameHelper, _regionHelper);
            parserMultipleRegions    = new ParserMultipleRegions(_commons, _specialBuildingNameHelper, _regionHelper);
            possibleRegions_2Regions = new List <string> {
                "A", "B"
            };
            possibleRegions_3Regions = new List <string> {
                "A", "B", "C"
            };
        }
Esempio n. 6
0
 public TitleParserSingle(ICommons commons, ISpecialBuildingNameHelper specialBuildingNameHelperToUse)
 {
     _commons = commons;
     _specialBuildingNameHelper = specialBuildingNameHelperToUse;
 }