private void LoadMockData(IWeatherDataModel mock) { mock.LocationDatas.Add(new LocationData() { LocationName = "Sydney", Latitude = -33.86, Longitude = 151.21, Elevation = 39 }); }
public WeatherService(IWeatherDataModel weatherDataModelContext) { _weatherDataModelContext = weatherDataModelContext; _locationData = _weatherDataModelContext.LocationDatas.ToList(); }
public void Initialize() { mock = new WeatherDataModelMock(); LoadMockData(mock); service = new WeatherService(mock); }