public void Setup() { _weatherObservationRepository = Substitute.For <IWeatherObservationRepository>(); _hubContext = Substitute.For <IHubContext <LiveUpdateHub> >(); _uut = new WeatherObservationController(_weatherObservationRepository, _hubContext); }
public WeatherObservationController(IWeatherObservationRepository repository, IHubContext <LiveUpdateHub> liveUpdateHub) { this._repository = repository; this._liveUpdateHub = liveUpdateHub; }