public MappedDataExpressionParserTests()
        {
            var project = ProjectBuilder.Predefined("input-output");

            context = new MapParserContext("foo.txt", project.Models);

            context.AddModelAlias("input", project.Models.FirstOrDefault(x => x.Id == "input"));

            parser = new MappedDataExpressionParser();
        }
Beispiel #2
0
        private MapParserContext MakeContext(string modelName)
        {
            var project = ProjectBuilder.Predefined(modelName);

            var context = new MapParserContext("foo.txt", project.Models);

            foreach (var model in project.Models)
            {
                context.AddModelAlias(model.Id, model);
            }

            return(context);
        }