Ejemplo n.º 1
0
        public bool CheckDependencies(Result messages)
        {
            var dependencies = new Dictionary <Question, HashSet <Identifier> >();

            foreach (var statement in Statements)
            {
                statement.GetDependencies(dependencies);
            }

            var checker = new DependencyChecker();

            foreach (var dependency in dependencies)
            {
                checker.AddDependencies(dependency.Key, dependency.Value);
            }

            checker.Check(messages);

            return(true);
        }