Esempio n. 1
0
        public void MsmqSinkNodeTest()
        {
            string name      = "testName";
            string queuePath = "testPath";
            string type      = typeof(MsmqSink).AssemblyQualifiedName;

            MsmqSinkNode node = new MsmqSinkNode();

            GeneratedApplicationNode.Nodes.Add(node);
            node.Name      = name;
            node.QueuePath = queuePath;

            Assert.AreEqual(name, node.Name);
            Assert.AreEqual(queuePath, node.QueuePath);
            Assert.AreEqual(type, node.TypeName);
        }
Esempio n. 2
0
        public void MsmqSinkDataTest()
        {
            string name      = "testName";
            string queuePath = "testPath";
            string type      = typeof(MsmqSink).AssemblyQualifiedName;

            MsmqSinkData data = new MsmqSinkData();

            data.Name      = name;
            data.QueuePath = queuePath;
            data.TypeName  = type;

            MsmqSinkNode node = new MsmqSinkNode(data);

            GeneratedApplicationNode.Nodes.Add(node);
            MsmqSinkData nodeData = (MsmqSinkData)node.SinkData;

            Assert.AreEqual(name, nodeData.Name);
            Assert.AreEqual(queuePath, nodeData.QueuePath);
            Assert.AreEqual(type, nodeData.TypeName);
        }