public void TestConexionListadoRepositoryConfig() { try { ConfigUrlService configUrl = new ConfigUrlService(); CallApiService callService = new CallApiService(configUrl); CallRepositoryConfigApiService callRepository = new CallRepositoryConfigApiService(callService); var resultado = callRepository.GetRepositoryConfigs(); Assert.True(true); } catch (Exception) { Assert.True(false); } }
public void TestConexionListadoRepositoryConfig() { try { var builder = new ConfigurationBuilder() .SetBasePath(Directory.GetCurrentDirectory()) .AddJsonFile("appsettings.Development.json"); IConfiguration Configuration = builder.Build(); ConfigUrlService configUrl = new ConfigUrlService(Configuration); CallApiService callService = new CallApiService(); CallRepositoryConfigApiService callRepository = new CallRepositoryConfigApiService(callService, null, configUrl); var resultado = callRepository.GetRepositoryConfigs(); Assert.True(true); } catch (Exception) { Assert.True(false); } }