Пример #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();
 }
Пример #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();
            }
Пример #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();
            }
Пример #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();
 }