Пример #1
0
 public CompletedSession(LiveSession live_session)
 {
     this.spot       = Guard.IsNotNull(live_session.spot, nameof(live_session.spot));
     this.guest      = Guard.IsNotNull(live_session.guest, nameof(live_session.guest));
     this.start_time = Guard.IsNotNull(live_session.start_time, nameof(live_session.start_time));
     this.end_time   = DateTime.UtcNow.Date;
 }
Пример #2
0
 public LiveSession(ParkingSpot spot, ParkingGuest guest)
 {
     this.spot       = Guard.IsNotNull(spot, nameof(spot));
     this.guest      = Guard.IsNotNull(guest, nameof(guest));
     this.start_time = DateTime.UtcNow.Date;
 }