Ejemplo n.º 1
0
 public ClientServices(User pUser, string testDB)
 {
     _user = pUser;
     _clientManagement = new ClientManager(testDB);
     _dataParam = ApplicationSettings.GetInstance(pUser.Md5);
     _picturesServices = new PicturesServices(testDB);
 }
Ejemplo n.º 2
0
 public ClientServices(User pUser)
 {
     _user = pUser;
     _clientManagement = new ClientManager(pUser, true, true);
     _clientManagement.ClientSelected += ClientSelected;
     _dataParam = ApplicationSettings.GetInstance(pUser.Md5);
     _picturesServices = new PicturesServices(pUser);
 }
Ejemplo n.º 3
0
 // MOCK
 public ClientServices(ClientManager clientManagement)
 {
     _clientManagement = clientManagement;
     _connectionManager = ConnectionManager.GetInstance(TESTDB);
     _dataParam = ApplicationSettings.GetInstance("");
     _picturesServices = new PicturesServices(TESTDB);
     _dataParam.DeleteAllParameters();
     _dataParam.AddParameter("GROUP_MIN_MEMBERS", 4);
     _dataParam.AddParameter("GROUP_MAX_MEMBERS", 10);
     _dataParam.AddParameter(OGeneralSettings.ALLOWSMULTIPLEGROUPS, 0);
     _dataParam.AddParameter("CITY_MANDATORY", true);
 }
Ejemplo n.º 4
0
 // MOCK
 public ClientServices(ApplicationSettings dataParam)
 {
     _clientManagement = new ClientManager(TESTDB);
     _connectionManager = ConnectionManager.GetInstance(TESTDB);
     _picturesServices = new PicturesServices(TESTDB);
     _dataParam = dataParam;
 }