Ejemplo n.º 1
0
        public void Setup()
        {
            System.Diagnostics.Debugger.Launch();

            _weatherForecast = LoadResource.LoadWeatherForecast(_weatherForecast);

            _MockDbService = InstantiateMockDbService();

            _controller = new WeatherForecastController(null, _MockDbService);
        }
Ejemplo n.º 2
0
        public void Setup()
        {
            System.Diagnostics.Debugger.Launch();

            _weatherForecast = LoadResource.LoadWeatherForecast(_weatherForecast);

            _context = new WeatherForecastContext();

            _context.WeatherForecast = DbSetExtension.GetQueryableMockDbSet(_weatherForecast);

            _controller = new WeatherForecastController(_context);
        }