public void taxiDriverMethod() { Taxi taxiDriver = new Taxi(); //Driver 1 taxiDriver.id = 1; taxiDriver.driver = "Hans"; taxiDriver.taxiList = new List<Trip>(); TaxiTrips.Add(taxiDriver); Taxi taxiDriver1 = new Taxi(); //Driver 2 taxiDriver1.id = 2; taxiDriver1.driver = "Peter"; taxiDriver1.taxiList = new List<Trip>(); TaxiTrips.Add(taxiDriver1); Taxi taxiDriver2 = new Taxi(); //Driver 3 taxiDriver2.id = 3; taxiDriver2.driver = "Katie"; taxiDriver2.taxiList = new List<Trip>(); TaxiTrips.Add(taxiDriver2); }
public void createTaxis() { taxis = new List<Taxi>(); Taxi taxi1 = new Taxi(); Taxi taxi2 = new Taxi(); Taxi taxi3 = new Taxi(); taxi1.Id = 1; taxi2.Id = 2; taxi3.Id = 3; taxi1.Driver = "Ole"; taxi2.Driver = "Svend"; taxi3.Driver = "Børge"; Trip trip1 = new Trip(); trip1.StartMinute = 1; trip1.StartHour = 23; trip1.EndHour = 1; trip1.EndMinute = 39; trip1.PricePrMinute = 20; Trip trip2 = new Trip(); trip2.StartMinute = 0; trip2.StartHour = 0; trip2.EndHour = 8; trip2.EndMinute = 30; trip2.PricePrMinute = 10; Trip trip3 = new Trip(); trip3.StartMinute = 0; trip3.StartHour = 0; trip3.EndHour = 15; trip3.EndMinute = 0; trip3.PricePrMinute = 5; Trip trip4 = new Trip(); trip4.StartMinute = 0; trip4.StartHour = 0; trip4.EndHour = 6; trip4.EndMinute = 30; trip4.PricePrMinute = 15; Trip trip5 = new Trip(); trip5.StartMinute = 30; trip5.StartHour = 4; trip5.EndHour = 8; trip5.EndMinute = 30; trip5.PricePrMinute = 10; Trip trip6 = new Trip(); trip6.StartMinute = 35; trip6.StartHour = 6; trip6.EndHour = 15; trip6.EndMinute = 32; trip6.PricePrMinute = 5; Trip trip7 = new Trip(); trip7.StartMinute = 35; trip7.StartHour = 2; trip7.EndHour = 6; trip7.EndMinute = 46; trip7.PricePrMinute = 7; Trip trip8 = new Trip(); trip8.StartMinute = 30; trip8.StartHour = 4; trip8.EndHour = 8; trip8.EndMinute = 30; trip8.PricePrMinute = 10; Trip trip9 = new Trip(); trip9.StartMinute = 0; trip9.StartHour = 0; trip9.EndHour = 15; trip9.EndMinute = 0; trip9.PricePrMinute = 5; Trip trip10 = new Trip(); trip10.StartMinute = 0; trip10.StartHour = 0; trip10.EndHour = 6; trip10.EndMinute = 30; trip10.PricePrMinute = 15; taxi1.Trips.Add(trip1); taxi1.Trips.Add(trip2); taxi1.Trips.Add(trip3); taxi1.Trips.Add(trip4); taxi2.Trips.Add(trip5); taxi2.Trips.Add(trip6); taxi2.Trips.Add(trip7); taxi3.Trips.Add(trip8); taxi3.Trips.Add(trip9); taxi3.Trips.Add(trip10); taxis.Add(taxi1); taxis.Add(taxi2); taxis.Add(taxi3); }