Пример #1
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);
 }
Пример #2
0
 public EstimatesController(
     EthereumClient ethereumClient,
     IEstimationService estimationService,
     IScoringCriterionRepository scoringCriterionRepository,
     IClock clock)
 {
     _ethereumClient             = ethereumClient;
     _estimationService          = estimationService;
     _scoringCriterionRepository = scoringCriterionRepository;
     _clock = clock;
 }
Пример #3
0
 public EstimationController(IEstimationService estimationService)
 {
     _estimationService = estimationService;
 }
Пример #4
0
 public EstimationController(IEstimationService service)
 {
     _service = service;
 }
 public EstimationController(IEstimationService estimationService,
                             IErc20PrivateWalletService erc20PrivateWalletService)
 {
     _estimationService         = estimationService;
     _erc20PrivateWalletService = erc20PrivateWalletService;
 }