//Functional requirement 5.1 method argument public void upload(FlickrPicture content) { //FR 5.1 List<Tag> tags = content.getTags(); foreach (Tag tag in tags) { Console.WriteLine(tag.ToString()); } //FR5.8 throw new CustomException("Error while printing file"); }
public UploadFlickrPicture() { try { //FR 5.1 invocation of a constructor FlickrPicture picture = new FlickrPicture(); //FR 5.1 upload(picture); //FR 5.8 } catch (CustomException e) { Console.WriteLine(e.StackTrace); } }