Ejemplo n.º 1
0
 public string Call(string phoneNumber)
 {
     if (Vallidator.ValidatePhoneNumber(phoneNumber))
     {
         return($"Calling... {phoneNumber}");
     }
     else
     {
         throw new InvalidPhoneException();
     }
 }
Ejemplo n.º 2
0
 public string Browse(string url)
 {
     if (Vallidator.ValidateURL(url))
     {
         return($"Browsing: {url}!");
     }
     else
     {
         throw new InvalidURLException();
     }
 }