public void LambdaInstance_accepts_Visitor()
        {
            var instance = new LambdaInstance<IGateway>(() => null);
            instance.As<IDependencySource>().AcceptVisitor(theVisitor);

            theVisitor.AssertWasCalled(x => x.Dependency(instance));
        }
        public void LambdaInstance_accepts_Visitor()
        {
            var instance = new LambdaInstance <IGateway>(() => null);

            instance.As <IDependencySource>().AcceptVisitor(theVisitor);

            theVisitor.AssertWasCalled(x => x.Dependency(instance));
        }
Esempio n. 3
0
        public void LambdaInstance_accepts_Visitor()
        {
            var instance = new LambdaInstance <IGateway>(() => null);

            instance.As <IDependencySource>().AcceptVisitor(theVisitor);

            theVisitor.Received().Dependency(instance);
        }
        public void LambdaInstance_accepts_Visitor()
        {
            var instance = new LambdaInstance<IGateway>(() => null);
            instance.As<IDependencySource>().AcceptVisitor(theVisitor);

            theVisitor.Received().Dependency(instance);
        }