public void EliminarArea() { WFBS.Business.Core.Area a = new WFBS.Business.Core.Area(); a.Id_area = 1; bool esperando = true; bool actua = a.Delete(); Assert.AreEqual(esperando, actua); }
public void crearArea() { WFBS.Business.Core.Area a = new WFBS.Business.Core.Area(); a.id_area = 6; a.area = "prueba6"; a.abreviacion = "p6"; a.obsoleta = 0; bool esperando = true; bool actua = a.Create(); Assert.AreEqual(esperando, actua); }
public void modificarArea() { WFBS.Business.Core.Area a = new WFBS.Business.Core.Area(); a.id_area = 3; a.area = "ppppppp"; a.abreviacion = "p67"; a.obsoleta = 0; bool esperando = true; bool actua = a.Update(); Assert.AreEqual(esperando, actua); }
public void crearPerfildeCargo() { WFBS.Business.Core.PerfilesdeCargo pc = new WFBS.Business.Core.PerfilesdeCargo(); pc.descripcion = "Descripción de prueba"; pc.Obsoleto = 0; List <WFBS.Business.Core.Area> areas = new List <WFBS.Business.Core.Area>(); WFBS.Business.Core.Area a = new WFBS.Business.Core.Area(); a.id_area = 1; areas.Add(a); bool esperando = true; bool actua = pc.Create(areas); Assert.AreEqual(esperando, actua); }
public void modificarArea() { WFBS.Business.Core.PerfilesdeCargo pc = new WFBS.Business.Core.PerfilesdeCargo(); pc.Id_PC = 21; pc.descripcion = "Actualización de prueba"; pc.Obsoleto = 0; List <WFBS.Business.Core.Area> areas = new List <WFBS.Business.Core.Area>(); WFBS.Business.Core.Area a = new WFBS.Business.Core.Area(); a.id_area = 2; areas.Add(a); bool esperando = true; bool actua = a.Update(); Assert.AreEqual(esperando, actua); }