public AbstractSemanticObject[] BuildBs()
        {
            AbstractSemanticObject[] result = new AbstractSemanticObject[5];
            SemanticObjectA a = new SemanticObjectA();
            SemanticObjectC lastC = null;
            for (int i = 0; i < 5; i++)
            {
                SemanticObjectB b = new SemanticObjectB
                                    {
                                        IntProperty = i,
                                        StringProperty = s_SomeStrings[i]
                                    };

                for (int j = 0; j < 10; j++)
                {
                    SemanticObjectC c = new SemanticObjectC
                                        {
                                            B = b,
                                            A = a
                                        };
                    lastC = c;
                }

                b.A = a;
                result[i] = b;
            }

            // this creates a loop, as it is downstream, but not a collection
            a.C = lastC;
            return result;
        }
Exemple #2
0
        public AbstractSemanticObject[] BuildBs()
        {
            AbstractSemanticObject[] result = new AbstractSemanticObject[5];
            SemanticObjectA          a      = new SemanticObjectA();
            SemanticObjectC          lastC  = null;

            for (int i = 0; i < 5; i++)
            {
                SemanticObjectB b = new SemanticObjectB
                {
                    IntProperty    = i,
                    StringProperty = s_SomeStrings[i]
                };

                for (int j = 0; j < 10; j++)
                {
                    SemanticObjectC c = new SemanticObjectC
                    {
                        B = b,
                        A = a
                    };
                    lastC = c;
                }

                b.A       = a;
                result[i] = b;
            }

            // this creates a loop, as it is downstream, but not a collection
            a.C = lastC;
            return(result);
        }
Exemple #3
0
        public void CreateAbstractSemanticObject()
        {
            AbstractSemanticObject result = new SemanticObjectB();

            Assert.IsNotNull(result);
            result = new SemanticObjectA();
            Assert.IsNotNull(result);
            result = new SemanticObjectC();
            Assert.IsNotNull(result);
        }
 public void CreateAbstractSemanticObject()
 {
     AbstractSemanticObject result = new SemanticObjectB();
     Assert.IsNotNull(result);
     result = new SemanticObjectA();
     Assert.IsNotNull(result);
     result = new SemanticObjectC();
     Assert.IsNotNull(result);
 }
 public void CreateAbstractSemanticObject()
 {
     AbstractSemanticObject result = new SemanticObjectB();
     result = new SemanticObjectA();
     result = new SemanticObjectC();
 }