Пример #1
0
 public void AddBuildPlanVisitor(IBuildPlanVisitor visitor)
 {
     lock (this.lockObj)
     {
         this.buildPlanVisitors.Add(visitor);
         this.ClearBuildPlans();
     }
 }
Пример #2
0
        public void AcceptVisitor(IBuildPlanVisitor visitor)
        {
            visitor.Instance(PluginType, Instance);
            _interceptionPlan?.AcceptVisitor(visitor);

            var visitable = Inner.As <IBuildPlanVisitable>();

            if (visitable == null)
            {
                visitor.InnerBuilder(Inner);
            }
            else
            {
                visitable.AcceptVisitor(visitor);
            }
        }
Пример #3
0
        public void AcceptVisitor(IBuildPlanVisitor visitor)
        {
            visitor.Instance(PluginType, Instance);
            _interceptionPlan?.AcceptVisitor(visitor);

            var visitable = Inner.As<IBuildPlanVisitable>();
            if (visitable == null)
            {
                visitor.InnerBuilder(Inner);
            }
            else
            {
                visitable.AcceptVisitor(visitor);
            }

            
        }
Пример #4
0
        public void AcceptVisitor(IBuildPlanVisitor visitor)
        {
            visitor.Instance(_pluginType, _instance);
            if (_interceptionPlan != null)
            {
                _interceptionPlan.AcceptVisitor(visitor);
            }

            var visitable = _inner.As <IBuildPlanVisitable>();

            if (visitable == null)
            {
                visitor.InnerBuilder(_inner);
            }
            else
            {
                visitable.AcceptVisitor(visitor);
            }
        }
Пример #5
0
        public void AcceptVisitor(IBuildPlanVisitor visitor)
        {
            visitor.Instance(_pluginType, _instance);
            if (_interceptionPlan != null)
            {
                _interceptionPlan.AcceptVisitor(visitor);
            }

            var visitable = _inner.As<IBuildPlanVisitable>();
            if (visitable == null)
            {
                visitor.InnerBuilder(_inner);
            }
            else
            {
                visitable.AcceptVisitor(visitor);
            }

            
        }
Пример #6
0
 public void SetUp()
 {
     theVisitor = MockRepository.GenerateMock<IBuildPlanVisitor>();
 }
 public void AddBuildPlanVisitor(IBuildPlanVisitor visitor)
 {
     lock (this.lockObj)
     {
         this.buildPlanVisitors.Add(visitor);
         this.ClearBuildPlans();
     }
 }
 public InterceptionPlanTester()
 {
     theVisitor = MockRepository.GenerateMock<IBuildPlanVisitor>();
 }
Пример #9
0
 public void AcceptVisitor(IBuildPlanVisitor visitor)
 {
     visitor.InnerBuilder(new Constant(Object.GetType(), Object));
 }
Пример #10
0
 public void AcceptVisitor(IBuildPlanVisitor visitor)
 {
     _decorators.Each(visitor.Decorator);
     _activators.SelectMany(x => x.Interceptors).Each(visitor.Activator);
 }
Пример #11
0
 public void SetUp()
 {
     theVisitor = MockRepository.GenerateMock <IBuildPlanVisitor>();
 }
 public InterceptionPlanTester()
 {
     theVisitor = Substitute.For<IBuildPlanVisitor>();
 }
Пример #13
0
        public void AcceptVisitor(IBuildPlanVisitor visitor)
        {
            visitor.Constructor(_constructor);

            _setters.Each(visitor.Setter);
        }
Пример #14
0
 public InterceptionPlanTester()
 {
     theVisitor = Substitute.For <IBuildPlanVisitor>();
 }
Пример #15
0
 public InterceptionPlanTester()
 {
     theVisitor = MockRepository.GenerateMock <IBuildPlanVisitor>();
 }