public void blows_up_if_more_than_one_application_source()
 {
     Exception <Exception> .ShouldBeThrownBy(() => {
         BottleServiceApplication.FindLoader(null);
     }).Message.ShouldContain("Found multiple candidates, you may need to specify an explicit selection in the bottle-service.config file.");
 }
 public void finds_bootstrapper_by_name()
 {
     BottleServiceApplication.FindLoader(typeof(FakeApplicationLoader).AssemblyQualifiedName)
     .ShouldBeOfType <FakeApplicationLoader>();
 }
 public void finds_bootstrapper_by_name_for_a_source()
 {
     BottleServiceApplication.FindLoader(typeof(GoodApplicationSource).AssemblyQualifiedName)
     .ShouldBeOfType <ApplicationLoader <GoodApplicationSource, Application, IDisposable> >();
 }