public void Should_respect_removed_built_in_modules_when_building_a_chain() { var config = new ClusterClientConfiguration(new SilentLog()); config.RemoveRequestModule(RequestModule.AbsoluteUrlSender); var chain = RequestModuleChainBuilder.BuildChain(config, Substitute.For <IReplicaStorageProvider>()); chain.Should().NotContain(module => module is AbsoluteUrlSenderModule); }
public void Should_respect_removed_custom_modules_when_building_a_chain() { var config = new ClusterClientConfiguration(new SilentLog()); config.SetupThreadPoolLimitsTuning(); config.RemoveRequestModule(RequestModule.ThreadPoolTuning); var chain = RequestModuleChainBuilder.BuildChain(config, Substitute.For <IReplicaStorageProvider>()); chain.Should().NotContain(module => module is ThreadPoolTuningModule); }