public void CanAddAnotherTopic() { var yellowTopic = new TopicConfigurationElement(); yellowTopic.Name = "yellow"; var section = new LoomEsbConfigurationSection(); section.Topics.Add(yellowTopic); }
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()); }
public void CanAddAThirdPublication() { var topic = new TopicConfigurationElement("topic"); var aThirdPublication = new PublicationConfigurationElement(topic); var actor = new ActorConfigurationElement("actor"); actor.Publications.Add(aThirdPublication); }
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()); }