public void TestConexionGetShapeConfig() { try { ConfigUrlService configUrl = new ConfigUrlService(); CallApiService callService = new CallApiService(); CallShapeConfigApiService callRepository = new CallShapeConfigApiService(callService, null, configUrl); Guid id = Guid.NewGuid(); var resultado = callRepository.GetShapeConfig(id); Assert.True(true); } catch (Exception ex) { Assert.True(false); } }
public void TestConexionGetShapeConfig() { 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(); CallShapeConfigApiService callRepository = new CallShapeConfigApiService(callService, null, configUrl); Guid id = Guid.NewGuid(); var resultado = callRepository.GetShapeConfig(id); Assert.True(true); } catch (Exception ex) { Assert.True(false); } }