public void Init()
        {
            DefaultsSetup();
            _actionsGraph = new ActionsGraph();
            var documentInput = new DocumentInput(new Document());

            documentInput.OnConnect();
            _actionsGraph.Register(documentInput);
        }
Пример #2
0
        public void Setup()
        {
            DefaultInterpreters.Setup();
            _actionsGraph = new ActionsGraph();
            _actionsGraph.Register(new FunctionFactoryInput());
            _actionsGraph.Register(new OptionsSetupInput());
            _document = TestUtils.DefaultsSetup();
            DefaultFunctions.Setup(_actionsGraph);
            var documentInput = new DocumentInput(_document);

            documentInput.OnConnect();
            _actionsGraph.Register(documentInput);
            _document.Transact();
        }
        public void SetupTest()
        {
            DefaultsSetup();

            var document = new Document();

            document.Root.Set <ActionGraphInterpreter>().ActionsGraph = _actionsGraph;
            var documentInput = new DocumentInput(document);

            _actionsGraph.Register(documentInput);
            documentInput.OnConnect();
            _document =
                _actionsGraph.InputContainer[InputNames.Document].GetData(NotificationNames.GetValue).Get <Document>();

            _document.Transact();
        }