Beispiel #1
0
        public void TestMethod3()
        {
            try
            {
                var repo = new ClinicalCategoryRepo();
                var uow  = new PDSDBUnitOfWork();
                //var cc = new ClinicalCategory
                //{
                //    Id = 1,
                //    //ClinicalCategoryId = 0,
                //   // GroupId = 1,
                //   // TypeId = 1,
                //    Name = "feature 3",
                //   // Description = "F 3",
                //    UpdatedOn = DateTime.Now,
                //    CreatedOn = DateTime.Now,
                //    Features = new List<Feature>
                //    {
                //        new Feature { Id
                //        = 2,
                //        //                    UpdatedOn = DateTime.Now,
                //        //                    CreatedOn = DateTime.Now
                //        //}
                //    }

                //};
                //repo.Add(cc);
                uow.SaveChanges();
            }
            catch (Exception ex)
            {
            }
        }
Beispiel #2
0
 public void TestMethod1()
 {
     try
     {
         var repo    = new FeatureRepo();
         var uow     = new PDSDBUnitOfWork();
         var feature = new Feature
         {
             Id = 0,
             //ClinicalCategoryId = 0,
             GroupId     = 1,
             TypeId      = 1,
             Name        = "feature 3",
             Description = "F 3",
             UpdatedOn   = DateTime.Now,
             CreatedOn   = DateTime.Now,
             Items       = new List <FeatureItem>
             {
                 //new FeatureItem { ItemId = 2,
                 //                    UpdatedOn = DateTime.Now,
                 //                    CreatedOn = DateTime.Now
                 //}
             }
         };
         repo.Add(feature);
         uow.SaveChanges();
     }
     catch (Exception ex)
     {
     }
 }
Beispiel #3
0
 public void TestMethod1()
 {
     try
     {
         var repo  = new ProductSuiteRepo();
         var uow   = new PDSDBUnitOfWork();
         var suite = new ProductSuite
         {
             Id         = 0,
             UniqueId   = Guid.NewGuid(),
             Name       = "Product Suite 1",
             CategoryId = 1,
             UpdatedOn  = DateTime.Now,
             CreatedOn  = DateTime.Now,
             //Versions = new List<ProductVersion>
             //{
             //    new ProductVersion { Id = 0,
             //                         StartDate = DateTime.Today,
             //                         EndDate   =DateTime.Today.AddDays(7)
             //    }   ,
             //    new ProductVersion { Id = 0,
             //                         StartDate = DateTime.Today.AddDays(8),
             //                         EndDate   =DateTime.Today.AddDays(14)
             //    }
             //}
         };
         repo.Add(suite);
         uow.SaveChanges();
     }
     catch (Exception ex)
     {
     }
 }
Beispiel #4
0
 public void TestMethod2()
 {
     try
     {
         var repo  = new ProductCategoryRepo();
         var uow   = new PDSDBUnitOfWork();
         var suite = new ProductCategory
         {
             Id        = 0,
             Name      = "Product Category 1",
             UpdatedOn = DateTime.Now,
             CreatedOn = DateTime.Now
         };
         repo.Add(suite);
         uow.SaveChanges();
     }
     catch (Exception ex)
     {
     }
 }
Beispiel #5
0
 public BaseService()
 {
     _uow         = new PDSDBUnitOfWork();
     _userService = new UserService();
 }