コード例 #1
0
        public void Should_configure_default_values()
        {
            var feature  = new InstanceMappingFileFeature();
            var settings = new SettingsHolder();

            feature.ConfigureDefaults(settings);

            Assert.That(settings.Get <string>(InstanceMappingFileFeature.FilePathSettingsKey), Is.EqualTo("instance-mapping.xml"));
            Assert.That(settings.Get <TimeSpan>(InstanceMappingFileFeature.CheckIntervalSettingsKey), Is.EqualTo(TimeSpan.FromSeconds(30)));
        }
コード例 #2
0
        public void Requires_routing_enabled()
        {
            var feature = new InstanceMappingFileFeature();

            Assert.That(feature.Dependencies.Any(dependencies => dependencies.Any(dependency => dependency == typeof(RoutingFeature).FullName)));
        }