public void AddToFavorite() { Console.Write("Enter URL: "); var url = Console.ReadLine(); Console.Write("Enter Title: "); var title = Console.ReadLine(); ICommand command = new AddToFavoriteCommand(url, title, webBrowserFavoriteStorage); command.Execute(); //webBrowserFavoriteStorage.AddToFavorite(new Favorite() { Title = "Untitled", Url = url }); }
public void AddPageToFavorite() { var command = new AddToFavoriteCommand(webFavoriteStorage); command.Execute(); }