dotnet add package Utilities.TW.TaxId.Validator
using Utilities.TW.TaxId.Validator.Interfaces;
using Utilities.TW.TaxId.Validator.Services;
ConfigureServices(IServiceCollection services)
{
// this injects as SINGLETON
services.AddSingleton<ITaxIdValidationService, TaxIdValidationService>();
}
using Utilities.TW.TaxId.Validator.Interfaces;
public class MyProcess
{
private readonly ITaxIdValidationService _taxIdValidationService;
public MyProcess(ITaxIdValidationService taxIdValidationService) =>
_taxIdValidationService = taxIdValidationService;
public bool ValidateTaxId() =>
_aesService.IsValid("your-tax-id");
}