public void Hierarchy_composition_will_not_prefix_entity_name_with_path_for_rules()
        {
            var prefix     = "/my/path/";
            var entityname = "myrule";

            var settings = new SettingsHolder();

            settings.Set(WellKnownConfigurationKeys.Topology.Addressing.Composition.HierarchyCompositionPathGenerator, (Func <string, string>)(s => prefix));
            var strategy = new HierarchyComposition(settings);

            Assert.AreEqual(entityname, strategy.GetEntityPath(entityname, EntityType.Rule));
        }
Exemple #2
0
 public void Hierarchy_composition_will_prefix_entity_name_with_path_for_queues_and_topics(string entityPath, EntityType entityType)
 {
     Assert.AreEqual($"{Prefix}{entityPath}", strategy.GetEntityPath(entityPath, entityType));
 }