Beispiel #1
0
 public void Should_throw_if_framework_components_registered_in_Windsor_to_prevent_torn_lifestyles_once_configuration_is_validated(bool useEntryAssembly)
 {
     SetUp(useEntryAssembly);
     Assert.Throws <Exception>(() =>
     {
         container.Register(Component.For <FakeFrameworkComponent>());
         container.AssertNoAspNetCoreRegistrations();
     });
 }