public void InsertItem()
        {
            using (SPSite site = new SPSite("http://captime.dev.titcs.com.br"))
            {
                using (SPWeb web = site.OpenWeb())
                {
                    var sitePages = new SitePagesRepository(web);

                    var id = sitePages.Add("Item 1");

                    Assert.IsTrue(id > 0);
                }
            }
        }
        public void UpdateItem()
        {
            using (SPSite site = new SPSite("http://captime.dev.titcs.com.br"))
            {
                using (SPWeb web = site.OpenWeb())
                {
                    var sitePages = new SitePagesRepository(web);

                    sitePages.Update(21, Guid.NewGuid().ToString());

                    Assert.IsTrue(true);
                }
            }
        }
        public void Connect()
        {
            using (SPSite site = new SPSite("http://captime.dev.titcs.com.br"))
            {
                using (SPWeb web = site.OpenWeb())
                {
                    var sitePages = new SitePagesRepository(web);

                    sitePages.RowLimit = 2;

                    var item = sitePages.GetAll();

                    Assert.IsTrue(item.Count > 0);
                }
            }
        }