Example #1
0
		/*
        Students: You can uncomment this helper function once you have finished creating the
        LocationEntry part of the WeatherContract.
     */
		static List<LocationEntry> createNorthPoleLocationValues ()
		{
			// Create a new map of values, where column names are the keys
			List<LocationEntry> locEntries = new List<LocationEntry> ();

			LocationEntry locEntry1 = new LocationEntry () {
				location_setting = TEST_LOCATION,
				city_name = "North Pole",
				coord_lat = 64.7488,
				coord_long = -147.353
			};
			LocationEntry locEntry2 = new LocationEntry () {
				location_setting = TEST_LOCATION,
				city_name = "Your Mom's",
				coord_lat = 61.345,
				coord_long = -180.353
			};
			LocationEntry locEntry3 = new LocationEntry () {
				location_setting = TEST_LOCATION,
				city_name = "Cartel HQ",
				coord_lat = -45.7488,
				coord_long = -101.353
			};
			locEntries.Add (locEntry1);
			locEntries.Add (locEntry2);
			locEntries.Add (locEntry3);

			return locEntries;
		}
Example #2
0
		public static bool validateCurrentRecord (LocationEntry expectedValues)
		{
			Assert.IsTrue (expectedValues.LocationId > 0, "Error Row not inserted correctly");
			return true;
		}