Exemplo n.º 1
0
        public void CanAddAPublication()
        {
            var aFirstPublication = new PublicationConfigurationElement("green");
            var actor             = new ActorConfigurationElement("actor");

            actor.Publications.Add(aFirstPublication);
        }
Exemplo n.º 2
0
 public void CanAddTwoSubscription()
 {
     var aSecondSubscription = new SubscriptionConfigurationElement();
     aSecondSubscription.Topic = "red";
     var actor = new ActorConfigurationElement("actor");
     actor.Subscriptions.Add(aSecondSubscription);
  }
Exemplo n.º 3
0
 public void CanAddAnotherActor()
 {     
     var actorB = new ActorConfigurationElement();
     actorB.Name = "actorB";
     var section = new LoomEsbConfigurationSection();
     section.Actors.Add(actorB);
 }
Exemplo n.º 4
0
        public void CanAddASubscription()
        {
            var aFirstSubscription = new SubscriptionConfigurationElement("green");
            var actor = new ActorConfigurationElement("actor");

            actor.Subscriptions.Add(aFirstSubscription);
        }
Exemplo n.º 5
0
        public void CanAddAThirdSubscription()
        {
            var aThirdSubscription = new SubscriptionConfigurationElement(new TopicConfigurationElement("yellow"));
            var actor = new ActorConfigurationElement("a");

            actor.Subscriptions.Add(aThirdSubscription);
        }
Exemplo n.º 6
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());
 }
Exemplo n.º 7
0
        public void CanAddAThirdPublication()
        {
            var topic             = new TopicConfigurationElement("topic");
            var aThirdPublication = new PublicationConfigurationElement(topic);
            var actor             = new ActorConfigurationElement("actor");

            actor.Publications.Add(aThirdPublication);
        }
Exemplo n.º 8
0
        public void CanAddTwoSubscription()
        {
            var aSecondSubscription = new SubscriptionConfigurationElement();

            aSecondSubscription.Topic = "red";
            var actor = new ActorConfigurationElement("actor");

            actor.Subscriptions.Add(aSecondSubscription);
        }
Exemplo n.º 9
0
        public void CanAddAnotherActor()
        {
            var actorB = new ActorConfigurationElement();

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

            section.Actors.Add(actorB);
        }
Exemplo n.º 10
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());
        }
Exemplo n.º 11
0
        public void CanAddAnotherPublication()
        {
            var aSecondPublication = new PublicationConfigurationElement();

            aSecondPublication.Topic = "red";
            var actor = new ActorConfigurationElement("actor");

            actor.Publications.Add(aSecondPublication);
        }
Exemplo n.º 12
0
 public void CanAddAnotherPublication()
 {
     var aSecondPublication = new PublicationConfigurationElement();
     aSecondPublication.Topic = "red";
     var actor = new ActorConfigurationElement("actor");
     actor.Publications.Add(aSecondPublication);
 }
Exemplo n.º 13
0
 public void CanAddAPublication()
 {
     var aFirstPublication = new PublicationConfigurationElement("green");
     var actor = new ActorConfigurationElement("actor");
     actor.Publications.Add(aFirstPublication);
 }
Exemplo n.º 14
0
 public void CanAddAThirdSubscription()
 {
     var aThirdSubscription = new SubscriptionConfigurationElement(new TopicConfigurationElement("yellow"));
     var actor = new ActorConfigurationElement("a");
     actor.Subscriptions.Add(aThirdSubscription);
 }
Exemplo n.º 15
0
 public void CanAddASubscription()
 {
     var aFirstSubscription = new SubscriptionConfigurationElement("green");
     var actor = new ActorConfigurationElement("actor");
     actor.Subscriptions.Add(aFirstSubscription);
 }
Exemplo n.º 16
0
 public void CanAddAThirdPublication()
 {
     var topic = new TopicConfigurationElement("topic");
     var aThirdPublication = new PublicationConfigurationElement(topic);
     var actor = new ActorConfigurationElement("actor");
     actor.Publications.Add(aThirdPublication);
 }