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