Esempio n. 1
0
 public static void StoreFirstCar(IObjectContainer db)
 {
     Car car1 = new Car("Ferrari");
     Pilot pilot1 = new Pilot("Michael Schumacher", 100);
     car1.Pilot = pilot1;
     db.Store(car1);
 }
Esempio n. 2
0
 public static void StoreSecondCar(IObjectContainer db)
 {
     Pilot pilot2 = new Pilot("Rubens Barrichello", 99);
     Car car2 = new Car("BMW");
     car2.Pilot = pilot2;
     car2.Snapshot();
     car2.Snapshot();
     db.Store(car2);
 }
Esempio n. 3
0
 public SensorReadout(DateTime time, Car car, string description)
 {
     _time = time;
     _car = car;
     _description = description;
 }
Esempio n. 4
0
 public TemperatureSensorReadout(DateTime time, Car car, string description, double temperature)
     : base(time, car, description)
 {
     _temperature = temperature;
 }
Esempio n. 5
0
 public PressureSensorReadout(DateTime time, Car car, string description, double pressure)
     : base(time, car, description)
 {
     _pressure = pressure;
 }