public void IsLoggedInTest()
 {
     UserSystemInformation target = new UserSystemInformation(); // TODO: Initialize to an appropriate value
     string expected = string.Empty; // TODO: Initialize to an appropriate value
     string actual;
     target.IsLoggedIn = expected;
     actual = target.IsLoggedIn;
     Assert.AreEqual(expected, actual);
     Assert.Inconclusive("Verify the correctness of this test method.");
 }
 public void IdTest()
 {
     UserSystemInformation target = new UserSystemInformation(); // 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.");
 }
 /// <summary>
 /// Deprecated Method for adding a new object to the UserSystemInformations EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToUserSystemInformations(UserSystemInformation userSystemInformation)
 {
     base.AddObject("UserSystemInformations", userSystemInformation);
 }
 /// <summary>
 /// Create a new UserSystemInformation object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="isLoggedIn">Initial value of the IsLoggedIn property.</param>
 /// <param name="lastSuccessfullLogIn">Initial value of the LastSuccessfullLogIn property.</param>
 /// <param name="userId">Initial value of the UserId property.</param>
 /// <param name="userTypeId">Initial value of the UserTypeId property.</param>
 public static UserSystemInformation CreateUserSystemInformation(global::System.Int32 id, global::System.String isLoggedIn, global::System.String lastSuccessfullLogIn, global::System.Int32 userId, global::System.Int32 userTypeId)
 {
     UserSystemInformation userSystemInformation = new UserSystemInformation();
     userSystemInformation.Id = id;
     userSystemInformation.IsLoggedIn = isLoggedIn;
     userSystemInformation.LastSuccessfullLogIn = lastSuccessfullLogIn;
     userSystemInformation.UserId = userId;
     userSystemInformation.UserTypeId = userTypeId;
     return userSystemInformation;
 }
        /// <summary>
        /// Insert specified user system infromation details in database
        /// </summary>
        /// <param name="dto">dto data for user system information details</param>
        public void InsertUsersSystemInformationDetails(UserSystemInformationDto 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.UserSystemInformations);
                //New users system information details - setting data
                UserSystemInformation usi = new UserSystemInformation();
                usi.UserTypeId = dto.UserTypeId;
                usi.IsLoggedIn = dto.IsLoggedIn;
                usi.LastSuccessfullLogIn = dto.LastSuccessfullLogIn;
                usi.UserId = dto.UserId;

                //Adds new personal userdetails to context
                dbContext.UserSystemInformations.AddObject(usi);

                //saves changes.
                dbContext.SaveChanges();
            }
            catch (Exception exception)
            {
                throw new Exception("UserDataMenagers: " + exception.Message);
            }
        }
 public void UserTypeReferenceTest()
 {
     UserSystemInformation target = new UserSystemInformation(); // TODO: Initialize to an appropriate value
     EntityReference<UserType> expected = null; // TODO: Initialize to an appropriate value
     EntityReference<UserType> actual;
     target.UserTypeReference = expected;
     actual = target.UserTypeReference;
     Assert.AreEqual(expected, actual);
     Assert.Inconclusive("Verify the correctness of this test method.");
 }
 public void UserSystemInformationConstructorTest()
 {
     UserSystemInformation target = new UserSystemInformation();
     Assert.Inconclusive("TODO: Implement code to verify target");
 }