Esempio n. 1
0
 public void CheckOut(DateTime timestamp, int patronId, CheckoutPolicy checkoutPolicy)
 {
     CheckOutTimestamp = timestamp;
     HeldByPatronId    = patronId;
     CheckoutPolicy    = checkoutPolicy;
     CalculateDueDate();
 }
Esempio n. 2
0
 public Material(string classification, string title, string author, string year, CheckoutPolicy checkoutPolicy)
 {
     Classification = classification;
     Title          = title;
     Year           = year;
     Author         = author;
     CheckoutPolicy = checkoutPolicy;
 }
Esempio n. 3
0
 public void CheckOut(DateTime timestamp, string barcode, int patronId, CheckoutPolicy checkoutPolicy)
 {
     Retrieve(barcode).CheckOut(timestamp, patronId, checkoutPolicy);
 }
Esempio n. 4
0
 private void CalculateDueDate()
 {
     DueDate = CheckOutTimestamp.AddDays(CheckoutPolicy.MaximumCheckoutDays());
 }