public void GetUserbyUserName()
 {
     string UserName = "******";
     BusinessLogic.UserManagerService target = new UserManagerService();
     Entities.aspnet_Users user = target.GetUserByUserName(UserName);
     Assert.AreEqual("john",user.UserName, "Wrong person");
 }
Example #2
0
        public User GetUserbyUserName(string UserName)
        {
            BusinessLogic.UserManagerService service = new UserManagerService();
            Entities.aspnet_Users u = service.GetUserByUserName(UserName);
            User user = new User();
            user.UserName = u.UserName;
            user.Email = u.aspnet_Membership.Email;

            var b = new Book("Name", "Author", 3, "ISBN");

            return user;
        }