コード例 #1
0
        public FrenchIngredientParserTests()
        {
            this._ingredients = new Ingredient[]
            {
                new Ingredient {
                    IngredientId = 1, SubrecipeId = 0, Name = "carottes"
                },
                new Ingredient {
                    IngredientId = 2, SubrecipeId = 0, Name = "avocat"
                },
                new Ingredient {
                    IngredientId = 3, SubrecipeId = 0, Name = "boeuf"
                },
                new Ingredient {
                    IngredientId = 4, SubrecipeId = 0, Name = "nouille"
                }
            };

            this._parser = new RicardoParser(null, null, null, x => null, x => null, x => null, x => new FrenchLanguageHelper(), x => null);
            this._parser.InitializeCulture("fr");
        }
コード例 #2
0
 public FrenchTimerParserTest()
 {
     this._parser = new RicardoParser(null, null, null, x => null, x => new FrenchTimerDetector(), x => null, x => new FrenchLanguageHelper(), x => null);
     this._parser.InitializeCulture("fr");
 }
コード例 #3
0
 public IngredientParserTests()
 {
     this._parser = new RicardoParser(null, null, null, x => null, x => null, x => new FrenchMeasureUnitDetector(), x => new FrenchLanguageHelper(), x => null);
     this._parser.InitializeCulture("fr");
 }