public void IdTest()
 {
     PersonalUserDetail target = new PersonalUserDetail(); // TODO: Initialize to an appropriate value
     int expected = 0; // TODO: Initialize to an appropriate value
     int actual;
     target.Id = expected;
     actual = target.Id;
     Assert.AreEqual(expected, actual);
     Assert.Inconclusive("Verify the correctness of this test method.");
 }
 public void FirstNameTest()
 {
     PersonalUserDetail target = new PersonalUserDetail(); // TODO: Initialize to an appropriate value
     string expected = string.Empty; // TODO: Initialize to an appropriate value
     string actual;
     target.FirstName = expected;
     actual = target.FirstName;
     Assert.AreEqual(expected, actual);
     Assert.Inconclusive("Verify the correctness of this test method.");
 }
 /// <summary>
 /// Deprecated Method for adding a new object to the PersonalUserDetails EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToPersonalUserDetails(PersonalUserDetail personalUserDetail)
 {
     base.AddObject("PersonalUserDetails", personalUserDetail);
 }
 /// <summary>
 /// Create a new PersonalUserDetail object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="firstName">Initial value of the FirstName property.</param>
 /// <param name="lastName">Initial value of the LastName property.</param>
 /// <param name="socialSecurityNumber">Initial value of the SocialSecurityNumber property.</param>
 /// <param name="userId">Initial value of the UserId property.</param>
 public static PersonalUserDetail CreatePersonalUserDetail(global::System.Int32 id, global::System.String firstName, global::System.String lastName, global::System.String socialSecurityNumber, global::System.Int32 userId)
 {
     PersonalUserDetail personalUserDetail = new PersonalUserDetail();
     personalUserDetail.Id = id;
     personalUserDetail.FirstName = firstName;
     personalUserDetail.LastName = lastName;
     personalUserDetail.SocialSecurityNumber = socialSecurityNumber;
     personalUserDetail.UserId = userId;
     return personalUserDetail;
 }
 public void UserReferenceTest()
 {
     PersonalUserDetail target = new PersonalUserDetail(); // TODO: Initialize to an appropriate value
     EntityReference<User> expected = null; // TODO: Initialize to an appropriate value
     EntityReference<User> actual;
     target.UserReference = expected;
     actual = target.UserReference;
     Assert.AreEqual(expected, actual);
     Assert.Inconclusive("Verify the correctness of this test method.");
 }
 public void PersonalUserDetailConstructorTest()
 {
     PersonalUserDetail target = new PersonalUserDetail();
     Assert.Inconclusive("TODO: Implement code to verify target");
 }
        /// <summary>
        /// Insert specified user personal details in database
        /// </summary>
        /// <param name="dto">dto data for user personal details</param>
        public void InsertUsersPersonalDetails(UserPersonalDetailsDto dto)
        {
            try
            {
                //Before any action, it must be updated because calls from contract uses
                //only one instance of UserManager.
                dbContext.Refresh(System.Data.Objects.RefreshMode.StoreWins, dbContext.PersonalUserDetails);
                //New personal user details - setting data
                PersonalUserDetail pud = new PersonalUserDetail();
                pud.FirstName = dto.FirstName;
                pud.LastName = dto.LastName;
                pud.SocialSecurityNumber = dto.SocSecNumber;
                pud.UserId = dto.UserId;

                //Adds new personal userdetails to context
                dbContext.PersonalUserDetails.AddObject(pud);

                //saves changes.
                dbContext.SaveChanges();
            }
            catch (Exception exception)
            {
                throw new Exception("UserDataMenagers: " + exception.Message);
            }
        }