public BookingDALManageFacade()
 {
     _bookingDALProvider       = new BookingDAL();
     _roomDALProvider          = new RoomDAL();
     _clientDALProvider        = new ClientDAL();
     _bookingDetailDALProvider = new BookingDetailDAL();
 }
Beispiel #2
0
 public void TestInitialize()
 {
     _clientDAL  = Substitute.For <IClientDAL>();
     _clientList = new List <IClient>()
     {
         new Client(id, "Marko"), new Client(Guid.NewGuid(), "Max"), new Client(Guid.NewGuid(), "Bob")
     };
 }
 public ClientService(IClientDAL clientDAL)
 {
     if (clientDAL == null)
     {
         throw new ArgumentNullException("Value cannot be null", nameof(clientDAL));
     }
     ClientDAL = clientDAL;
 }
 public ClientDALManageFacade()
 {
     _clientDALProvider = new ClientDAL();
 }
Beispiel #5
0
 public ClientService(IClientDAL clientDAL)
 {
     _clientDal = clientDAL;
 }