Ejemplo n.º 1
0
        public static MeasurementPlace Get(string name, DateTime date)
        {
            var place = Places.SingleOrDefault(x => x.Name == name && x.Date == date);

            if (place == null)
            {
                place = new MeasurementPlace(name, date);
                Places.Add(place);
            }

            return(place);
        }
Ejemplo n.º 2
0
 public Measurement(int stationNr, double pollution, MeasurementPlace place)
 {
     StationNr = stationNr;
     Pollution = pollution;
     Place     = place;
 }