/// <summary> /// Dependency injection to make sure the service is testable /// </summary> /// <param name="globalWeatherServiceAgent"></param> /// <param name="log"></param> public GlobalWeatherServiceClient(IGlobalWeatherServiceAgent globalWeatherServiceAgent, ILog log) { this.globalWeatherServiceAgent = globalWeatherServiceAgent; this.mLog = log; }
public GlobalWeatherServiceClientTest() { mLog = LogManager.GetLogger(typeof(ILog)); globalWeatherServiceAgent = new GlobalWeatherServiceAgent(mLog); globalWeatherServiceClient = new GlobalWeatherServiceClient(globalWeatherServiceAgent, mLog); }