public void TestConexionGetRepositoryConfig() { try { ConfigUrlService configUrl = new ConfigUrlService(); CallApiService callService = new CallApiService(configUrl); CallRepositoryConfigApiService callRepository = new CallRepositoryConfigApiService(callService); Guid id = Guid.NewGuid(); var resultado = callRepository.GetRepositoryConfig(id); Assert.True(true); } catch (Exception) { Assert.True(false); } }
public void TestConexionGetRepositoryConfig() { 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); Guid id = Guid.NewGuid(); var resultado = callRepository.GetRepositoryConfig(id); Assert.True(true); } catch (Exception) { Assert.True(false); } }