Esempio n. 1
0
 public void HasPublicDefaultConstructor_WithSettableProperties()
 {
     var obj = new MyHomeInfo
     {
         Emails = new[]
         {
             new MyHomeInfo.MyEmailAddress
             {
                 Value = "value",
                 IsConfirmed = true,
                 IsDefault = false,
                 Number = 6,
             },
         },
     };
     obj.ShouldNotBeNull();
 }
Esempio n. 2
0
            public void HasPublicDefaultConstructor_WithSettableProperties()
            {
                var obj = new MyHomeInfo
                {
                    Emails = new[]
                    {
                        new MyHomeInfo.MyEmailAddress
                        {
                            Value       = "value",
                            IsConfirmed = true,
                            IsDefault   = false,
                            Number      = 6,
                        },
                    },
                };

                obj.ShouldNotBeNull();
            }
Esempio n. 3
0
            public void HasPublicDefaultConstructor_WithSettableProperties()
            {
                var obj = new MyHomeInfo
                {
                    Affiliations = new[]
                    {
                        new MyHomeInfo.MyAffiliation
                        {
                            EstablishmentId    = 6,
                            IsAcknowledged     = true,
                            IsClaimingEmployee = false,
                            IsClaimingStudent  = false,
                            JobTitles          = "job titles",
                            Establishment      = new MyHomeInfo.MyAffiliation.EstablishmentModel
                            {
                                IsInstitution = true,
                                OfficialName  = "official name",
                            },
                        },
                    },
                };

                obj.ShouldNotBeNull();
            }
Esempio n. 4
0
 public void HasPublicDefaultConstructor_WithSettableProperties()
 {
     var obj = new MyHomeInfo
     {
         Affiliations = new[]
         {
             new MyHomeInfo.MyAffiliation
             {
                 EstablishmentId = 6,
                 IsAcknowledged = true,
                 IsClaimingEmployee = false,
                 IsClaimingStudent = false,
                 JobTitles = "job titles",
                 Establishment = new MyHomeInfo.MyAffiliation.EstablishmentModel
                 {
                     IsInstitution = true,
                     OfficialName = "official name",
                 },
             },
         },
     };
     obj.ShouldNotBeNull();
 }