示例#1
0
 public void Initialize()
 {
     userDao = new UserDao();
     testUser = new User()
     {
         First_name = "Vlad Guleaev",
         Email = "*****@*****.**",
         Passwrd = "123",
         Last_name = "testUser"
     };
 }
示例#2
0
 public static UserService getInstance()
 {
     if (Bll==null)
     {
         Bll = new ImplUser();
     }
     if (instance == null)
     {
         instance = new UserService();
     }
     if (userDao == null)
     {
         userDao = new UserDao();
     }
     if (userClassDao == null)
     {
         userClassDao = new UserClassDao();
     }
     return instance;
 }