예제 #1
0
 public void SetUp()
 {
     mockdb     = new Mock <IDatabase>();
     db         = mockdb.Object;
     userdao    = new UserDAO(db);
     messagedao = new MessageDAO(db);
 }
예제 #2
0
 public RequestService(IBankAccountDAO bankAccountDao, ICreditService creditService)
 {
     _bankAccountDao = bankAccountDao;
     _creditService = creditService;
     _creditTypesDao = new CreditTypesDAO();
     _messageDao = new MessageDAO();
     _requestDao = new RequestDAO();
 }
예제 #3
0
 public RequestService(IRequestDAO requestDao, 
     ICreditTypesDAO creditTypesDao, 
     IMessageDAO messageDao, 
     IBankAccountDAO bankAccountDao, 
     ICreditService creditService)
 {
     _requestDao = requestDao;
     _creditTypesDao = creditTypesDao;
     _messageDao = messageDao;
     _bankAccountDao = bankAccountDao;
     _creditService = creditService;
 }
예제 #4
0
 public FacadeBase()
 {
     _adminDAO      = new AdministratorDAOMSSQL();
     _airlineDAO    = new AirlineDAOMSSQL();
     _customerDAO   = new CustomerDAOMSSQL();
     _userDAO       = new UserDAOMSSQL();
     _flightDAO     = new FlightDAOMSSQL();
     _ticketDAO     = new TicketDAOMSSQL();
     _countryDAO    = new CountryDAOMSSQL();
     _messageDAO    = new MessageDAOMSSQL();
     _backgroundDAO = new MaintenanceDAOMSSQL();
 }
예제 #5
0
 public WebChatService(IMessageDAO messageDao)
 {
     this.messageDao = messageDao;
 }
예제 #6
0
 public MessageService(IMessageDAO messageDao)
 {
     _messageDao = messageDao;
 }
예제 #7
0
 public MessageService()
 {
     _messageDao = new MessageDAO();
 }
예제 #8
0
 public MessageBL(IMessageDAO messageDAO, IUserDAO userDAO)
 {
     _messageDAO = messageDAO;
     _userDAO    = userDAO;
 }