public void ReferencedDependencySource_accepts_Visitor()
        {
            var source = new ReferencedDependencySource(typeof (IGateway), "Green");

            source.AcceptVisitor(theVisitor);

            theVisitor.AssertWasCalled(x => x.Referenced(source));
        }
 protected bool Equals(ReferencedDependencySource other)
 {
     return Equals(_dependencyType, other._dependencyType) && string.Equals(_name, other._name);
 }
 public void Referenced(ReferencedDependencySource source)
 {
     _writer.Line("Instance named '{0}'".ToFormat(source.Name));
     _buildPlanVisitor.ShowReferenced(source.DependencyType, source.Name);
 }
        public void ReferencedDependencySource_accepts_Visitor()
        {
            var source = new ReferencedDependencySource(typeof(IGateway), "Green");

            source.AcceptVisitor(theVisitor);

            theVisitor.Received().Referenced(source);
        }