public void Setup() { System.Diagnostics.Debugger.Launch(); _weatherForecast = LoadResource.LoadWeatherForecast(_weatherForecast); _MockDbService = InstantiateMockDbService(); _controller = new WeatherForecastController(null, _MockDbService); }
public void Setup() { System.Diagnostics.Debugger.Launch(); _weatherForecast = LoadResource.LoadWeatherForecast(_weatherForecast); _context = new WeatherForecastContext(); _context.WeatherForecast = DbSetExtension.GetQueryableMockDbSet(_weatherForecast); _controller = new WeatherForecastController(_context); }