Example #1
0
        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 });
        }
Example #2
0
        public void AddPageToFavorite()
        {
            var command = new AddToFavoriteCommand(webFavoriteStorage);

            command.Execute();
        }