public void first_configuration_supercedes_second() // Packaging activator runs second so this is very important { var registry = new FubuRegistry(); registry.Spark(spark => spark.Settings.AddNamespace("Test")); registry.WithSparkDefaults(); SparkSettings settings = null; registry.Services(x => { settings = (SparkSettings)x.DefaultServiceFor <ISparkSettings>().Value; }); registry.BuildGraph(); settings .UseNamespaces .ShouldContain("Test"); }
public static FubuRegistry WithSparkDefaults(this FubuRegistry registry) { return(registry.Spark(spark => spark.Policies.Add <ControllerSparkPolicy>())); }