public void Setup()
        {
            _mockFeeRepository = Substitute.For <IFeeRepository>();
            _mockTaxRepository = Substitute.For <ITaxRepository>();
            _mockProvider      = Substitute.For <IRemittanceProvider>();

            _service = new TaxAndFeeService(_mockProvider, _mockTaxRepository, _mockFeeRepository);
        }
예제 #2
0
 public void Setup()
 {
     _mockCountryService       = Substitute.For <ICountryService>();
     _mockEstimationRepository = Substitute.For <IEstimationRepository>();
     _mockExchangeService      = Substitute.For <IExchangeService>();
     _mockPaymentService       = Substitute.For <IPaymentService>();
     _mockTaxAndFeeService     = Substitute.For <ITaxAndFeeService>();
     _service = new EstimationService(_mockPaymentService, _mockTaxAndFeeService,
                                      _mockExchangeService, _mockCountryService, _mockEstimationRepository);
 }
예제 #3
0
 public EstimationService(IPaymentService paymentService,
                          ITaxAndFeeService taxAndFeeService,
                          IExchangeService exchangeService,
                          ICountryService countryService,
                          IEstimationRepository estimationRepository)
 {
     _paymentService       = paymentService;
     _taxAndFeeService     = taxAndFeeService;
     _exchangeService      = exchangeService;
     _countryService       = countryService;
     _estimationRepository = estimationRepository;
 }