コード例 #1
0
 public BookingDALManageFacade()
 {
     _bookingDALProvider       = new BookingDAL();
     _roomDALProvider          = new RoomDAL();
     _clientDALProvider        = new ClientDAL();
     _bookingDetailDALProvider = new BookingDetailDAL();
 }
コード例 #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")
     };
 }
コード例 #3
0
 public ClientService(IClientDAL clientDAL)
 {
     if (clientDAL == null)
     {
         throw new ArgumentNullException("Value cannot be null", nameof(clientDAL));
     }
     ClientDAL = clientDAL;
 }
コード例 #4
0
 public ClientDALManageFacade()
 {
     _clientDALProvider = new ClientDAL();
 }
コード例 #5
0
 public ClientService(IClientDAL clientDAL)
 {
     _clientDal = clientDAL;
 }