Beispiel #1
0
 public Reservation(CarCategory bilcat, string startstation, DateTime start, DateTime end)
 {
     this.Customer           = new Customer();
     this.BilCat             = new CarCategory();
     this.StartStation       = new RentalStation();
     this.EndStation         = new RentalStation();
     this.StartDate          = start;
     this.EndDate            = end;
     this.BilCat             = bilcat;
     this.StartStation       = new DB.FakeDB().MatchStation(startstation);
     this.TotalPrize         = 0;
     this.Reservationsnummer = "UNASSIGNED";
     this.Status             = Status.Active;
 }
Beispiel #2
0
 public Reservation(DateTime startDate, DateTime endDate, CarCategory bilCat, string startStation, string endStation, string firstName, string lastName, string address, int telephoneNumber, string email)
 {
     this._Customer                = new Customer();
     this._BookedCategory          = new CarCategory();
     this._RentalStation           = new RentalStation();
     this._ReturnStation           = new RentalStation();
     this.StartDate                = startDate;
     this.EndDate                  = endDate;
     this.BilCat                   = bilCat;
     this.StartStation             = new DB.FakeDB().MatchStation(startStation);
     this.EndStation               = new DB.FakeDB().MatchStation(endStation);
     this.Customer.FirstName       = firstName;
     this.Customer.LastName        = lastName;
     this.Customer.Street          = address;
     this.Customer.TelephoneNumber = telephoneNumber.ToString();
     this.Customer.Email           = email;
     this.Status                   = Status.Active;
 }
Beispiel #3
0
 //PRIVATE CONSTRUCTOR FOR INTERNAL USE
 private Reservation(string reservationsnummer, DateTime startDate, DateTime endDate, CarCategory bilCat, RentalStation startStation, RentalStation endStation, string firstName, string lastName, string address, int telephoneNumber, string email, double totalPrize)
 {
     // NOT IMPLEMENTED OR USED YET
     this.Reservationsnummer       = reservationsnummer;
     this.StartDate                = startDate;
     this.EndDate                  = endDate;
     this.BilCat                   = bilCat;
     this.StartStation             = startStation;
     this.EndStation               = endStation;
     this.Customer.FirstName       = firstName;
     this.Customer.LastName        = lastName;
     this.Customer.Street          = address;
     this.Customer.TelephoneNumber = telephoneNumber.ToString();
     this.Customer.Email           = email;
     this.TotalPrize               = totalPrize;
     this.Status                   = Status.Active;
 }