Example #1
0
 public void IsFalse_WhenUserEdutPersonTargetedId_IsNotNullOrWhiteSpace()
 {
     var model = new MyHomeInfo
     {
         UserEduPersonTargetedId = "person targeted id",
     };
     model.CanChangePassword.ShouldBeFalse();
 }
Example #2
0
 public void IsTrue_WhenUserEdutPersonTargetedId_IsEmptyString()
 {
     var model = new MyHomeInfo
     {
         UserEduPersonTargetedId = string.Empty,
     };
     model.CanChangePassword.ShouldBeTrue();
 }
Example #3
0
 public void IsTrue_WhenUserEdutPersonTargetedId_IsWhiteSpace()
 {
     var model = new MyHomeInfo
     {
         UserEduPersonTargetedId = "\n",
     };
     model.CanChangePassword.ShouldBeTrue();
 }
Example #4
0
 public void IsTrue_WhenUserEdutPersonTargetedId_IsNull()
 {
     var model = new MyHomeInfo
     {
         UserEduPersonTargetedId = null,
     };
     model.CanChangePassword.ShouldBeTrue();
 }
Example #5
0
            public void IsFalse_WhenUserEdutPersonTargetedId_IsNotNullOrWhiteSpace()
            {
                var model = new MyHomeInfo
                {
                    UserEduPersonTargetedId = "person targeted id",
                };

                model.CanChangePassword.ShouldBeFalse();
            }
Example #6
0
            public void IsTrue_WhenUserEdutPersonTargetedId_IsWhiteSpace()
            {
                var model = new MyHomeInfo
                {
                    UserEduPersonTargetedId = "\n",
                };

                model.CanChangePassword.ShouldBeTrue();
            }
Example #7
0
            public void IsTrue_WhenUserEdutPersonTargetedId_IsEmptyString()
            {
                var model = new MyHomeInfo
                {
                    UserEduPersonTargetedId = string.Empty,
                };

                model.CanChangePassword.ShouldBeTrue();
            }
Example #8
0
            public void IsTrue_WhenUserEdutPersonTargetedId_IsNull()
            {
                var model = new MyHomeInfo
                {
                    UserEduPersonTargetedId = null,
                };

                model.CanChangePassword.ShouldBeTrue();
            }
Example #9
0
 public void HasPublicDefaultConstructor_WithSettableProperties()
 {
     var obj = new MyHomeInfo
     {
         Emails = new[]
         {
             new MyHomeInfo.MyEmailAddress
             {
                 Value = "value",
                 IsConfirmed = true,
                 IsDefault = false,
                 Number = 6,
             },
         },
     };
     obj.ShouldNotBeNull();
 }
Example #10
0
            public void HasPublicDefaultConstructor_WithSettableProperties()
            {
                var obj = new MyHomeInfo
                {
                    Emails = new[]
                    {
                        new MyHomeInfo.MyEmailAddress
                        {
                            Value       = "value",
                            IsConfirmed = true,
                            IsDefault   = false,
                            Number      = 6,
                        },
                    },
                };

                obj.ShouldNotBeNull();
            }
Example #11
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();
            }
Example #12
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();
 }