public void ResetDepartamentoTest()
        {
            DepartamentoDataMapper target = new DepartamentoDataMapper(); // TODO: Inicializar en un valor adecuado

            target.ResetDepartamento();
            Assert.Inconclusive("Un método que no devuelve ningún valor no se puede comprobar.");
        }
Esempio n. 2
0
 public DepartamentoModel(IDataMapper dataMapper, USUARIO u)
 {
     if ((dataMapper as DepartamentoDataMapper) != null)
     {
         this._dataMapper = dataMapper as DepartamentoDataMapper;
     }
     this.ActualUser = u;
 }
        public void GetJsonDepartamentoTest()
        {
            DepartamentoDataMapper target = new DepartamentoDataMapper(); // TODO: Inicializar en un valor adecuado
            string expected = string.Empty;                               // TODO: Inicializar en un valor adecuado
            string actual;

            actual = target.GetJsonDepartamento();
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Compruebe la exactitud de este método de prueba.");
        }
        public void getElementTest()
        {
            DepartamentoDataMapper target = new DepartamentoDataMapper(); // TODO: Inicializar en un valor adecuado
            object element  = null;                                       // TODO: Inicializar en un valor adecuado
            object expected = null;                                       // TODO: Inicializar en un valor adecuado
            object actual;

            actual = target.getElement(element);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Compruebe la exactitud de este método de prueba.");
        }
        public void insertElementTest()
        {
            DepartamentoDataMapper target = new DepartamentoDataMapper(); // TODO: Inicializar en un valor adecuado
            object element = new InventoryApp.DAL.POCOS.DEPARTAMENTO()
            {
                UNID_DEPARTAMENTO   = 12345
                , DEPARTAMENTO_NAME = "Finanzas"
            }; // TODO: Inicializar en un valor adecuado

            target.insertElement(element);
            Assert.Inconclusive("Un método que no devuelve ningún valor no se puede comprobar.");
        }
Esempio n. 6
0
 public CatalogDepartamentoViewModel()
 {
     try
     {
         IDataMapper dataMapper = new DepartamentoDataMapper();
         this._catalogDepartamentoModel = new CatalogDepartamentoModel(dataMapper);
     }
     catch (ArgumentException a)
     {
         ;
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Esempio n. 7
0
        public string downloadDepartamento(long?lastModifiedDate)
        {
            string respuesta = null;

            if (lastModifiedDate != null)
            {
                DepartamentoDataMapper dataMapper = new DepartamentoDataMapper();

                respuesta = dataMapper.GetJsonDepartamento(lastModifiedDate);

                if (String.IsNullOrEmpty(respuesta))
                {
                    respuesta = null;
                }
            }
            return(respuesta);
        }