Skip to content

A nuget package for validating Taiwan TaxId (BAN) targeting .Net8

License

Notifications You must be signed in to change notification settings

ed555009/utilities-tw-tax-id-validator

Repository files navigation

Utilities.TW.TaxId.Validator

GitHub Build Status Nuget

Coverage Quality Gate Status Reliability Rating Security Rating Vulnerabilities

Installation

dotnet add package Utilities.TW.TaxId.Validator

Using service

Register services

using Utilities.TW.TaxId.Validator.Interfaces;
using Utilities.TW.TaxId.Validator.Services;

ConfigureServices(IServiceCollection services)
{
	// this injects as SINGLETON
	services.AddSingleton<ITaxIdValidationService, TaxIdValidationService>();
}

Using service

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");
}

About

A nuget package for validating Taiwan TaxId (BAN) targeting .Net8

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages