public static bool validateCurrentRecordWeath (WeatherEntry expectedValues) { Assert.IsTrue (expectedValues.WeatherRecordId > 0, "Error Row not inserted correctly"); return true; }
static List<WeatherEntry> createWeatherValues () { // Create a new map of values, where column names are the keys List<WeatherEntry> weathEntries = new List<WeatherEntry> (); var date = 0; int.TryParse (DateTime.Now.ToString (), out date); WeatherEntry weathEntry1 = new WeatherEntry () { date = date + 1, degrees = 75, humidity = 45, LocationId = 1, max_temp = 80, min_temp = 56, pressure = 32, short_desc = "Warmish", weather_id = 23, wind = 5 }; WeatherEntry weathEntry2 = new WeatherEntry () { date = date + 2, degrees = 72, humidity = 42, LocationId = 1, max_temp = 82, min_temp = 51, pressure = 34, short_desc = "Warm Kinda", weather_id = 22, wind = 45 }; WeatherEntry weathEntry3 = new WeatherEntry () { date = date + 3, degrees = 7, humidity = 4, LocationId = 1, max_temp = 80, min_temp = 56, pressure = 32, short_desc = "Impossible", weather_id = 23, wind = 5 }; weathEntries.Add (weathEntry1); weathEntries.Add (weathEntry2); weathEntries.Add (weathEntry3); return weathEntries; }