コード例 #1
0
        public void ReferencedDependencySource_accepts_Visitor()
        {
            var source = new ReferencedDependencySource(typeof (IGateway), "Green");

            source.AcceptVisitor(theVisitor);

            theVisitor.AssertWasCalled(x => x.Referenced(source));
        }
コード例 #2
0
        public void ReferencedDependencySource_accepts_Visitor()
        {
            var source = new ReferencedDependencySource(typeof(IGateway), "Green");

            source.AcceptVisitor(theVisitor);

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