public DashboardService(IIpStackConnector ipStackConnector, INewsApiOrgConnector newsApiOrgConnector, IOpenWeatherMapConnector openWeatherMapConnector, ITimeZoneDbConnector timeZoneDbConnector, IDateHelper dateHelper) { _ipStackConnector = ipStackConnector; _newsApiOrgConnector = newsApiOrgConnector; _openWeatherMapConnector = openWeatherMapConnector; _timeZoneDbConnector = timeZoneDbConnector; _dateHelper = dateHelper; }
public void SetUp() { _ipStackConnector = Substitute.For <IIpStackConnector>(); _newsApiOrgConnector = Substitute.For <INewsApiOrgConnector>(); _openWeatherMapConnector = Substitute.For <IOpenWeatherMapConnector>(); _timeZoneDbConnector = Substitute.For <ITimeZoneDbConnector>(); _dateHelper = Substitute.For <IDateHelper>(); _dashboardService = new DashboardService(_ipStackConnector, _newsApiOrgConnector, _openWeatherMapConnector, _timeZoneDbConnector, _dateHelper); }