public InternationalTaxCalculatorService(ITaxFactory taxFactory)
 {
     TaxesDue = new List<ITaxDue>
         {
             taxFactory.GetTaxInstance(TaxTypes.ForeignRemittanceTax)
         };
 }
Example #2
0
 public PaySlipService(
     ITaxFactory taxFactory,
     IPaySlipRepository paySlipRepository)
 {
     _taxFactory        = taxFactory;
     _paySlipRepository = paySlipRepository;
 }
 public DomesticTaxCalculatorService(ITaxFactory taxFactory)
 {
     TaxesDue = new List<ITaxDue>
         {
             taxFactory.GetTaxInstance(TaxTypes.ServiceTax),
             taxFactory.GetTaxInstance(TaxTypes.EducationCess),
         };
 }
Example #4
0
 public Order(ITaxFactory taxFactory)
 {
     _taxFactory = taxFactory;
 }
Example #5
0
 public EducationCess(ITaxFactory taxFactory)
 {
     //This is a violation of IoC..
     Name = "Education Cess";
     this.ChildTax = taxFactory.GetTaxInstance(TaxTypes.ServiceTax);
 }