public Reservation(ReaderId readerId, CopyId copyId)
 {
     ReservationId   = new ReservationId(Guid.NewGuid());
     ReaderId        = readerId;
     CopyId          = copyId;
     ReservationDate = DateTime.Now;
     ReleaseDate     = ReservationDate.AddDays(1);
     Status          = ReservationStatus.Pending;
 }
示例#2
0
 public OwnerId(ReservationId id) : base(id.Value)
 {
 }