public void disposing_a_main_container_will_dispose_an_object_injected_into_the_container() { var disposable = new C2Yes(); var container = new Container(x => x.For <C2Yes>().Use(disposable)); container.Dispose(); disposable.WasDisposed.ShouldBeTrue(); }
public void disposing_a_main_container_will_dispose_an_object_injected_into_the_container() { var disposable = new C2Yes(); var container = new Container(x => x.For<C2Yes>().Use(disposable)); container.Dispose(); disposable.WasDisposed.ShouldBeTrue(); }