예제 #1
0
 public void ThrowBusinessRuleValidationException_IfProfileIdHaveInvalidValues
     (int profileValue)
 {
     Assert.Throws <BusinessRuleValidationException>(
         () => UpdateUserMother.GetUserWithInvalidProfileId(profileValue)
         );
 }
예제 #2
0
 public void ThrowBusinessRuleValidationException_IfDniHaveInvalidValues
     (string dniValue)
 {
     Assert.Throws <BusinessRuleValidationException>(
         () => UpdateUserMother.GetUserWithInvalidDni(dniValue)
         );
 }
예제 #3
0
 public void ThrowBusinessRuleValidationException_IfLastnameHaveInvalidValues
     (string lastnameValue)
 {
     Assert.Throws <BusinessRuleValidationException>(
         () => UpdateUserMother.GetUserWithInvalidLasttname(lastnameValue)
         );
 }
예제 #4
0
 public void ThrowBusinessRuleValidationException_IfUserIdHaveAInvalidValues()
 {
     Assert.Throws <BusinessRuleValidationException>(
         () => UpdateUserMother.GetUserWithEmptyUserId()
         );
 }
예제 #5
0
        public void AValidUser_IfRecreateAValidUserCredential()
        {
            User mockUser = UpdateUserMother.GetAValidUser();

            Assert.NotNull(mockUser.GetCredential);
        }
예제 #6
0
        public void UpdateAValidUser()
        {
            User mockUser = UpdateUserMother.GetAValidUser();

            Assert.NotNull(mockUser);
        }