public void TestAdd()
        {
            string guid = Guid.NewGuid().ToString();

            Notice not = new Notice();
            not.Active = true;
            not.Date = DateTime.Now.Date.AddDays(-30);
            not.TagId = 1;
            not.Texto = "Texto " + guid;
            not.Title = "Titulo " + guid;


            Notice not0 = new Notice();
            not0.Active = true;
            not0.Date = DateTime.Now.Date.AddDays(-30);
            not0.TagId = 1;
            not0.Texto = "Texto " + guid;
            not0.Title = "Titulo " + guid;

            Notice not1 = new Notice();
            not1.Active = true;
            not1.Date = DateTime.Now.Date.AddDays(-30);
            not1.TagId = 1;
            not1.Texto = "Texto " + guid;
            not1.Title = "Titulo " + guid;

            rep.Add(not);
            rep.Add(new List<Notice>(2) { not0, not1 });

            Assert.NotNull(not);
            Assert.NotNull(not0);
            Assert.NotNull(not1);
            Assert.True(not.Id > 0);
            Assert.True(not0.Id > 0);
            Assert.True(not1.Id > 0);            

        }
        private static void Add(RepositoryNoticeContract rep)
        {
            string guid = Guid.NewGuid().ToString();

            Notice not = new Notice();
            not.Active = true;
            not.Date = DateTime.Now.Date.AddDays(-30);
            not.TagId = 1;
            not.Texto = "Texto " + guid;
            not.Title = "Titulo " + guid;


            Notice not0 = new Notice();
            not0.Active = true;
            not0.Date = DateTime.Now.Date.AddDays(-30);
            not0.TagId = 1;
            not0.Texto = "Texto " + guid;
            not0.Title = "Titulo " + guid;

            Notice not1 = new Notice();
            not1.Active = true;
            not1.Date = DateTime.Now.Date.AddDays(-30);
            not1.TagId = 1;
            not1.Texto = "Texto " + guid;
            not1.Title = "Titulo " + guid;

            rep.Add(not);
            rep.Add(new List<Notice>(2) { not0, not1 });
        }