예제 #1
0
        public void TestAdd()
        {
            Category category = new Category
            {
                CategoryName = "PruebaNotTgyghyfghfghfhfgh"
            };

            NorthWndContext context = new NorthWndContext();

            using (UnidadDeTrabajo <Category> unidad =
                       new UnidadDeTrabajo <Category>(context))
            {
                bool result;
                unidad.genericDAL.Add(category);
                result = unidad.Complete();
                Assert.True(!result, "Inserciòn correcta");
            }
        }
예제 #2
0
 public DALGenericoImpl(NorthWndContext context)
 {
     Context = context;
 }
예제 #3
0
 public ValuesController(NorthWndContext dbContext)
 {
     this.dbContext = dbContext;
 }
예제 #4
0
 public UnidadDeTrabajo(NorthWndContext _context)
 {
     context    = _context;
     genericDAL = new DALGenericoImpl <T>(context);
 }