Example #1
0
        public void CreateInputPortMgr_Creates_Instance()
        {
            //Arrange
            var fac = new PortMgrFactory();

            //Act
            IInputPortMgr mgr = fac.CreateInputPortMgr();

            //Assert
            Assert.NotNull(mgr);
        }
        private IInputPortMgr CreateInputPortMgr(IElement parent, Guid mgrId, Guid port0Id)
        {
            IInputPortMgr inPortMgr = null;
            IInputDataPort inPort = null;

            using (PortMgrFactory fac = new PortMgrFactory())
            {
                inPortMgr = fac.CreateInputPortMgr();
            }

            using (PortFactory fac = new PortFactory())
            {
                inPort = fac.CreateInputDataPort(port0Id, parent);
            }

            inPortMgr.Add(inPort);

            return inPortMgr;
        }
        private IInputPortMgr CreateInputPortMgr(IElement parent)
        {
            IInputPortMgr inPortMgr = null;
            IInputDataPort inPort = null;

            using (PortMgrFactory fac = new PortMgrFactory())
            {
                inPortMgr = fac.CreateInputPortMgr();
            }

            Guid id = Guid.NewGuid();
            using (PortFactory fac = new PortFactory())
            {
                inPort = fac.CreateInputDataPort(id, parent);
            }

            inPortMgr.Add(inPort);

            return inPortMgr;
        }
        private IInputPortMgr CreateInputPortMgr(IElement parent)
        {
            // No INput Ports
            IInputPortMgr inPortMgr = null;

            using (PortMgrFactory fac = new PortMgrFactory())
            {
                inPortMgr = fac.CreateInputPortMgr();
            }

            return inPortMgr;
        }