public TaxStrategyFactory( TaxJarService taxJarService, OtherTaxService otherTaxService) { _taxJarService = taxJarService; _otherTaxService = otherTaxService; }
public TaxServiceTests() { var config = new ConfigurationBuilder() .SetBasePath(Directory.GetCurrentDirectory()) .AddJsonFile("appsettings.json") .Build(); var mockLogger = new Mock <ILogger <TaxJarService> >(); ILogger <TaxJarService> logger = mockLogger.Object; _taxService = new TaxJarService(logger, config); }
static void Main(string[] args) { try { ITaxJarService service = new TaxJarService(new TaxJarRepository()); HttpClient httpClient = new HttpClient(); httpClient = setHttpClient(httpClient); GettotalTax(service, httpClient); GetCalculateTa(service, httpClient); GetLocalTaxRate(service, httpClient); } catch (Exception ex) { Console.ReadLine(); } }