public void CanAddAPublication() { var aFirstPublication = new PublicationConfigurationElement("green"); var actor = new ActorConfigurationElement("actor"); actor.Publications.Add(aFirstPublication); }
public void CanAddTwoSubscription() { var aSecondSubscription = new SubscriptionConfigurationElement(); aSecondSubscription.Topic = "red"; var actor = new ActorConfigurationElement("actor"); actor.Subscriptions.Add(aSecondSubscription); }
public void CanAddAnotherActor() { var actorB = new ActorConfigurationElement(); actorB.Name = "actorB"; var section = new LoomEsbConfigurationSection(); section.Actors.Add(actorB); }
public void CanAddASubscription() { var aFirstSubscription = new SubscriptionConfigurationElement("green"); var actor = new ActorConfigurationElement("actor"); actor.Subscriptions.Add(aFirstSubscription); }
public void CanAddAThirdSubscription() { var aThirdSubscription = new SubscriptionConfigurationElement(new TopicConfigurationElement("yellow")); var actor = new ActorConfigurationElement("a"); actor.Subscriptions.Add(aThirdSubscription); }
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()); }
public void CanAddAThirdPublication() { var topic = new TopicConfigurationElement("topic"); var aThirdPublication = new PublicationConfigurationElement(topic); var actor = new ActorConfigurationElement("actor"); actor.Publications.Add(aThirdPublication); }
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()); }
public void CanAddAnotherPublication() { var aSecondPublication = new PublicationConfigurationElement(); aSecondPublication.Topic = "red"; var actor = new ActorConfigurationElement("actor"); actor.Publications.Add(aSecondPublication); }