Skip to content

Instantly share code, notes, and snippets.

@OksanaH
Created January 5, 2021 22:31
Show Gist options
  • Save OksanaH/a043459b8963920d6545ec5afa33e728 to your computer and use it in GitHub Desktop.
Save OksanaH/a043459b8963920d6545ec5afa33e728 to your computer and use it in GitHub Desktop.
OrderApiGateway
public class OrderApiGateway
{
private readonly TaxCodeCalculator taxCalculator;
public OrderApiGateway(TaxCodeCalculator taxCalculator)
{
this.taxCalculator = taxCalculator;
}
public string GetOrderNumber()
{
return $"SDNU-{taxCalculator.GetCode()}";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment