public void Should_be_able_to_set_the_sanitization_strategy() { var settings = new SettingsHolder(); var extensions = new TransportExtensions <AzureServiceBusTransport>(settings); var topicSettings = extensions.Individualization().UseStrategy <MyIndividualizationStrategy>(); Assert.AreEqual(typeof(MyIndividualizationStrategy), topicSettings.GetSettings().Get <Type>(WellKnownConfigurationKeys.Topology.Addressing.Individualization.Strategy)); }
public void Should_be_able_to_extend_individualization_settings() { var settings = new SettingsHolder(); var extensions = new TransportExtensions <AzureServiceBusTransport>(settings); var individualizationSettings = extensions.Individualization(); Assert.IsInstanceOf <AzureServiceBusIndividualizationSettings>(individualizationSettings); }