示例#1
0
        public void UserSetGenderPrivateTest()
        {
            User user = new User();
            user.GenderString = "private";

            Assert.AreEqual(Gender.Private, user.GenderEnum);
        }
示例#2
0
        public void UserSetGenderMaleTest()
        {
            User user = new User();
            user.GenderString = "male";

            Assert.AreEqual(Gender.Male, user.GenderEnum);
        }
示例#3
0
        public void UserViewModelCreateTest()
        {
            User user = new User();
            UserViewModel userViewModel = new UserViewModel(user);

            Assert.IsNotNull(userViewModel);
            Assert.IsNotNull(userViewModel.User);
        }
示例#4
0
 /// <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();
 }
示例#5
0
 /// <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;
 }
示例#6
0
        public void UserSetStatusPublicTest()
        {
            User user = new User();
            user.StatusString = "public";

            Assert.AreEqual(UserStatus.Public, user.StatusEnum);
        }
示例#7
0
        public void UserSetStatusPrivateTest()
        {
            User user = new User();
            user.StatusString = "private";

            Assert.AreEqual(UserStatus.Private, user.StatusEnum);
        }
示例#8
0
 public void UserSetStatusBadValueTest()
 {
     User user = new User();
     user.StatusString = "goofy";
 }
示例#9
0
 public void UserSetGenderBadValueTest()
 {
     User user = new User();
     user.GenderString = "neuter";
 }
示例#10
0
 public void UserSimpleCreateTest()
 {
     User user = new User();
     Assert.IsNotNull(user);
 }