private static void Edit(RepositoryNoticeContract rep)
 {
     bool result = false;
     Notice notc2 = rep.Find(7);
     if (notc2 != null)
     {
         notc2.Active = true;
         notc2.Date = DateTime.Now.Date.AddDays(-30);
         notc2.TagId = 1;
         notc2.Texto = "Texto Edit";
         notc2.Title = "Titulo Edit";
         result = rep.Edit(notc2);
     }
 }
        private static void Find(RepositoryNoticeContract rep)
        {
            Notice notFind = rep.Find(8);
            if (notFind.Id != 8)
                throw new Exception("Error", new FormatException());

        }