Пример #1
0
 public void CanAddAnotherTopic()
 {
     var yellowTopic = new TopicConfigurationElement();
     yellowTopic.Name = "yellow";
     var section = new LoomEsbConfigurationSection();
     section.Topics.Add(yellowTopic);
 }
Пример #2
0
 public void CanAddAnotherActor()
 {     
     var actorB = new ActorConfigurationElement();
     actorB.Name = "actorB";
     var section = new LoomEsbConfigurationSection();
     section.Actors.Add(actorB);
 }
Пример #3
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());
 }
Пример #4
0
 public void CanAddAnActor()
 {
     var actor = new ActorConfigurationElement("actorA");
     var section = new LoomEsbConfigurationSection();
     section.Actors.Add(actor);
     Assert.AreEqual(1, section.Actors.Count);
     Assert.AreEqual(actor, section.Actors.Cast<ActorConfigurationElement>().First());
 }
Пример #5
0
        public void CanAddAnotherTopic()
        {
            var yellowTopic = new TopicConfigurationElement();

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

            section.Topics.Add(yellowTopic);
        }
Пример #6
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());
        }
Пример #7
0
        public void CanAddAnotherActor()
        {
            var actorB = new ActorConfigurationElement();

            actorB.Name = "actorB";
            var section = new LoomEsbConfigurationSection();

            section.Actors.Add(actorB);
        }
Пример #8
0
        public void CanAddAnActor()
        {
            var actor   = new ActorConfigurationElement("actorA");
            var section = new LoomEsbConfigurationSection();

            section.Actors.Add(actor);
            Assert.AreEqual(1, section.Actors.Count);
            Assert.AreEqual(actor, section.Actors.Cast <ActorConfigurationElement>().First());
        }