Пример #1
0
        public virtual IGenericGraph MapToGraph(IInputSource source, IMapperConfig config)
        {
            IGenericGraph OutputGraph = new T();

            cancelled = false;
            foreach (IStatementsConfig entityConfig in config.ListStatementsConfigs())
            {
                if (cancelled)
                {
                    statementAssembler.StopTask();
                    break;
                }
                OutputGraph.Merge(statementAssembler.AssembleEntityStatements(source, entityConfig, config.ListNamespaces()));
            }

            return(OutputGraph);
        }
        public void WhenAssembleStatementsInvoked_ShouldReturnGraph()
        {
            IGenericGraph result = _statementAssembler.AssembleEntityStatements(_mockInputSource, _mockStatementsConfig, _fakeNamespaceMap);

            Assert.That(result, Is.Not.Null);
        }