Ejemplo n.º 1
0
        public ActionResult SaveBookMark(string url)
        {
            var bookmark = new Bookmark();
            bookmark.Save(new Bookmark
                            {
                                Link = url,
                                Title = "Google",
                                Description = "Sample Description",
                                Member = 1,
                                Status = "Active"
                            });

            return Json(new { Output = "Saved" }, JsonRequestBehavior.AllowGet);
        }
Ejemplo n.º 2
0
        public void CanSaveBookmark()
        {
            var bookmark = new Bookmark();
            bookmark.Save(new Bookmark
                            {
                                Title = "title",
                                Link = "http://www.google.com",
                                Description = "awetasdfasdf",
                                Member = 1,
                                Status = "Active"
                            });

            Assert.Inconclusive("Saved");
        }