Ejemplo n.º 1
0
 public void CanAddAnotherTopic()
 {
     var yellowTopic = new TopicConfigurationElement();
     yellowTopic.Name = "yellow";
     var section = new LoomEsbConfigurationSection();
     section.Topics.Add(yellowTopic);
 }
Ejemplo n.º 2
0
 public void CanAddATopic()
 {
     var greenTopic = new TopicConfigurationElement("green");
     var section = new LoomEsbConfigurationSection();
     section.Topics.Add(greenTopic);
     Assert.AreEqual(1, section.Topics.Count);
     Assert.AreEqual(greenTopic, section.Topics.Cast<TopicConfigurationElement>().First());
 }
Ejemplo n.º 3
0
        public void CanAddAThirdPublication()
        {
            var topic             = new TopicConfigurationElement("topic");
            var aThirdPublication = new PublicationConfigurationElement(topic);
            var actor             = new ActorConfigurationElement("actor");

            actor.Publications.Add(aThirdPublication);
        }
Ejemplo n.º 4
0
        public void CanAddAnotherTopic()
        {
            var yellowTopic = new TopicConfigurationElement();

            yellowTopic.Name = "yellow";
            var section = new LoomEsbConfigurationSection();

            section.Topics.Add(yellowTopic);
        }
Ejemplo n.º 5
0
        public void CanAddATopic()
        {
            var greenTopic = new TopicConfigurationElement("green");
            var section    = new LoomEsbConfigurationSection();

            section.Topics.Add(greenTopic);
            Assert.AreEqual(1, section.Topics.Count);
            Assert.AreEqual(greenTopic, section.Topics.Cast <TopicConfigurationElement>().First());
        }
Ejemplo n.º 6
0
 public void CanAddAThirdPublication()
 {
     var topic = new TopicConfigurationElement("topic");
     var aThirdPublication = new PublicationConfigurationElement(topic);
     var actor = new ActorConfigurationElement("actor");
     actor.Publications.Add(aThirdPublication);
 }