public void SetWeatherCondition(string weatherCondition) { if (weatherCondition == "sunny") { _emailClient.CreateEmailMessage(weatherCondition); } else if (weatherCondition == "rainy") { _phone.CreateSMSMessage(weatherCondition); } }