예제 #1
0
        public void EliminarUsuario()
        {
            WFBS.Business.Core.Usuario a = new WFBS.Business.Core.Usuario();
            a.Rut = "18661447-k";

            bool esperando = true;
            bool actua     = a.Delete();

            Assert.AreEqual(esperando, actua);
        }
예제 #2
0
        public void crearUsuario()
        {
            WFBS.Business.Core.Usuario a = new WFBS.Business.Core.Usuario();
            a.Rut       = "5555555-5";
            a.Id_Perfil = 2;
            a.Id_Area   = 3;
            a.Nombre    = "miguel";
            a.Sexo      = "M";
            a.Jefe      = null;
            a.Password  = "******";
            a.Obsoleto  = 0;

            bool esperando = true;
            bool actua     = a.Create();

            Assert.AreEqual(esperando, actua);
        }