示例#1
0
        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);
        }
示例#2
0
        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);
        }
示例#3
0
        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);
        }
示例#4
0
        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);
        }
示例#5
0
        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);
        }