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"); } }
public DALGenericoImpl(NorthWndContext context) { Context = context; }
public ValuesController(NorthWndContext dbContext) { this.dbContext = dbContext; }
public UnidadDeTrabajo(NorthWndContext _context) { context = _context; genericDAL = new DALGenericoImpl <T>(context); }