public void LifecycleDependencySource_accepts_Visitor() { var source = new LifecycleDependencySource(typeof (IGateway), new SmartInstance<StubbedGateway>()); source.AcceptVisitor(theVisitor); theVisitor.AssertWasCalled(x => x.Lifecycled(source)); }