Beispiel #1
0
        public virtual void ShouldVisitAttribute()
        {
            MockAttributeBridge bridge = new MockAttributeBridge("aPropertyName");

            bridge.relationship = new Relationship();
            this.walker.ProcessRelationship(this.bridgeFactory.interaction, bridge, this.visitor);
            Assert.IsTrue(this.visitor.IsAttributeVisited(), "visited");
        }
Beispiel #2
0
        public virtual void SetUp()
        {
            ignoredAsNotAllowedOriginalValue = Runtime.GetProperty(ConformanceLevelUtil.IGNORED_AS_NOT_ALLOWED);

            CodeResolverRegistry.RegisterResolver(typeof(ActStatus), new EnumBasedCodeResolver(typeof(Ca.Infoway.Messagebuilder.Domainvalue.Controlact.ActStatus
                                                                                                      )));
            CodeResolverRegistry.RegisterResolver(typeof(Realm), new EnumBasedCodeResolver(typeof(Domainvalue.Transport.Realm)));
            this.visitor         = new XmlRenderingVisitor(MockVersionNumber.MOCK_MR2009);
            this.partBridge      = new MockPartBridge();
            this.attributeBridge = new MockAttributeBridge("aPropertyName");
            this.interation      = new Interaction();
            this.interation.Name = "ABCD_IN123456CA";
            Argument argument = new Argument();

            argument.Name = "ABCD_MT987654CA.Baby";
            argument.TemplateParameterName = "act";
            argument.TraversalName         = "bambino";
            this.interation.Arguments.Add(argument);
        }