public void UserSetGenderPrivateTest() { User user = new User(); user.GenderString = "private"; Assert.AreEqual(Gender.Private, user.GenderEnum); }
public void UserSetGenderMaleTest() { User user = new User(); user.GenderString = "male"; Assert.AreEqual(Gender.Male, user.GenderEnum); }
public void UserViewModelCreateTest() { User user = new User(); UserViewModel userViewModel = new UserViewModel(user); Assert.IsNotNull(userViewModel); Assert.IsNotNull(userViewModel.User); }
/// <summary> /// Initializes a new instance of the UserViewModel class /// </summary> /// <param name="user">the user Data transfer object</param> public UserViewModel(User user) { this.user = user; this.WebLinkClickCommand = new HyperlinkNavigateCommand(); }
/// <summary> /// Initializes a new instance of the UserViewModel class /// </summary> /// <param name="user">the user Data transfer object</param> public UserViewModel(User user) { this.user = user; }
public void UserSetStatusPublicTest() { User user = new User(); user.StatusString = "public"; Assert.AreEqual(UserStatus.Public, user.StatusEnum); }
public void UserSetStatusPrivateTest() { User user = new User(); user.StatusString = "private"; Assert.AreEqual(UserStatus.Private, user.StatusEnum); }
public void UserSetStatusBadValueTest() { User user = new User(); user.StatusString = "goofy"; }
public void UserSetGenderBadValueTest() { User user = new User(); user.GenderString = "neuter"; }
public void UserSimpleCreateTest() { User user = new User(); Assert.IsNotNull(user); }