Exemple #1
0
        private static ParentDocument ParentDocument()
        {
            var parentDocument = new ParentDocument
            {
                Id = 7,
                D1 = "p7",
                ChildDocumentLevelOne = new Collection <ChildDocumentLevelOne>
                {
                    new ChildDocumentLevelOne
                    {
                        D2 = "p7.p21",
                        Id = 21,
                        ChildDocumentLevelTwo = new ChildDocumentLevelTwo
                        {
                            Id = 31,
                            D3 = "p7.p21.p31"
                        }
                    },
                    new ChildDocumentLevelOne
                    {
                        D2 = "p7.p22",
                        Id = 22,
                        ChildDocumentLevelTwo = new ChildDocumentLevelTwo
                        {
                            Id = 32,
                            D3 = "p7.p21.p32"
                        },
                        ChildDocumentLevelTwoFromTop = new[]
                        {
                            new ChildDocumentLevelTwo
                            {
                                Id = 71,
                                D3 = "p7.p21.testComplex71"
                            },
                            new ChildDocumentLevelTwo
                            {
                                Id = 72,
                                D3 = "p7.p21.testComplex72"
                            },
                            new ChildDocumentLevelTwo
                            {
                                Id = 73,
                                D3 = "p7.p21.testComplex73"
                            }
                        }
                    }
                }
            };

            return(parentDocument);
        }
Exemple #2
0
        private static ParentDocument ParentDocument2()
        {
            var parentDocument = new ParentDocument
            {
                Id                    = 8,
                D1                    = "p8",
                BoolCheck             = true,
                ChildDocumentLevelOne = new Collection <ChildDocumentLevelOne>
                {
                    new ChildDocumentLevelOne
                    {
                        D2 = "p8.p25",
                        Id = 25,
                        ChildDocumentLevelTwo = new ChildDocumentLevelTwo
                        {
                            Id = 35,
                            D3 = "p8.p25.p35"
                        }
                    },
                    new ChildDocumentLevelOne
                    {
                        D2 = "p8.p26",
                        Id = 26,
                        ChildDocumentLevelTwo = new ChildDocumentLevelTwo
                        {
                            Id = 36,
                            D3 = "p8.p26.p36"
                        },
                        ChildDocumentLevelTwoFromTop = new[]
                        {
                            new ChildDocumentLevelTwo
                            {
                                Id = 81,
                                D3 = "p8.p26.testComplex81"
                            }
                        }
                    }
                }
            };

            return(parentDocument);
        }
 private static ParentDocument ParentDocument2()
 {
     var parentDocument = new ParentDocument
     {
         Id = 8,
         D1 = "p8",
         BoolCheck=true,
         ChildDocumentLevelOne = new Collection<ChildDocumentLevelOne>
         {
             new ChildDocumentLevelOne
             {
                 D2 = "p8.p25",
                 Id = 25,
                 ChildDocumentLevelTwo = new ChildDocumentLevelTwo
                 {
                     Id = 35,
                     D3 = "p8.p25.p35"
                 }
             },
             new ChildDocumentLevelOne
             {
                 D2 = "p8.p26",
                 Id = 26,
                 ChildDocumentLevelTwo = new ChildDocumentLevelTwo
                 {
                     Id = 36,
                     D3 = "p8.p26.p36"
                 },
                 ChildDocumentLevelTwoFromTop = new[]
                 {
                     new ChildDocumentLevelTwo
                     {
                         Id = 81,
                         D3 = "p8.p26.testComplex81"
                     }
                 }
             }
         }
     };
     return parentDocument;
 }
 private static ParentDocument ParentDocument()
 {
     var parentDocument = new ParentDocument
     {
         Id = 7,
         D1 = "p7",
         ChildDocumentLevelOne = new Collection<ChildDocumentLevelOne>
         {
             new ChildDocumentLevelOne
             {
                 D2 = "p7.p21",
                 Id = 21,
                 ChildDocumentLevelTwo = new ChildDocumentLevelTwo
                 {
                     Id = 31,
                     D3 = "p7.p21.p31"
                 }
             },
             new ChildDocumentLevelOne
             {
                 D2 = "p7.p22",
                 Id = 22,
                 ChildDocumentLevelTwo = new ChildDocumentLevelTwo
                 {
                     Id = 32,
                     D3 = "p7.p21.p32"
                 },
                 ChildDocumentLevelTwoFromTop = new[]
                 {
                     new ChildDocumentLevelTwo
                     {
                         Id = 71,
                         D3 = "p7.p21.testComplex71"
                     },
                     new ChildDocumentLevelTwo
                     {
                         Id = 72,
                         D3 = "p7.p21.testComplex72"
                     },
                     new ChildDocumentLevelTwo
                     {
                         Id = 73,
                         D3 = "p7.p21.testComplex73"
                     }
                 }
             }
         }
     };
     return parentDocument;
 }