public void GettingAvailablesImporterOk()
        {
            ReflectionLogic reflectionLogic        = new ReflectionLogic();
            List <IImport>  listOfDllObteined      = reflectionLogic.GetAvailableImporters().ToList();
            bool            resultOfValuesObteined = listOfDllObteined[0].GetName().Equals("Importador JSON") &&
                                                     listOfDllObteined[1].GetName().Equals("Importador XML");

            Assert.IsTrue(resultOfValuesObteined);
        }
Beispiel #2
0
        public IActionResult Get()
        {
            List <IImport> listOfImportersAvailables = reflectionLogic.GetAvailableImporters().ToList();

            if (listOfImportersAvailables.IsNullOrEmpty())
            {
                return(NotFound("No hay importadores disponibles actualmente"));
            }
            else
            {
                return(Ok(listOfImportersAvailables.ConvertAll(i => i.GetName())));
            }
        }