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