Info
Version: | 0.0.1.479 |
Author(s): | Gustavo Americo |
Last Update: | Saturday, February 29, 2020 |
.NET Fiddle: | Create the first Fiddle |
Project Url: | https://dev.azure.com/gag-opensource/Nuget-Packages |
NuGet Url: | https://www.nuget.org/packages/Jabuticaba.Documentos.Integracao |
Install
Install-Package Jabuticaba.Documentos.Integracao
dotnet add package Jabuticaba.Documentos.Integracao
paket add Jabuticaba.Documentos.Integracao
Jabuticaba.Documentos.Integracao Download (Unzip the "nupkg" after downloading)
Dependencies
- Jabuticaba.Documentos(>= 0.0.1.479)
- Microsoft.AspNetCore.Http.Extensions(>= 2.2.0)
- Microsoft.Azure.Cosmos.Table(>= 1.0.6)
- Microsoft.Extensions.DependencyInjection.Abstractions(>= 2.2.0)
Tags
public async Task TestRequestForValidCpfInAzureTableCache()
{
//Substitua pelo cpf que deseja pesquisar
string _cpfSample = "45317828791";
var http = new HttpClient();
var option = new CpfCnpjHttpClient.Settings() { Token = "<https://cpfcnpj.com.br token>", Pacote = 9 };
var cache = new AzureStorageTableCache(@"<Azure Storage Token SAS>");
var client = new CpfCnpjHttpClient(http, option, cache);
var result = await client.GetDetailsAsync(_cpfSample);
Assert.AreEqual(result.Cpf.Number, _cpfSample);
}
```.