Exemplo n.º 1
0
        public TimestampService(
            ILogger logger,
            ITimestampRepository timestampRepository,
            IUserRepository userRepository,
            IPricePlanRepository pricePlanRepository,
            IEthHelper ethHelper,
            ITimestampQueueService timestampQueueService,
            IWeb3 basicWeb3,
            IWeb3 premiumWeb3)
        {
            Guard.Argument(logger, nameof(logger)).NotNull();
            Guard.Argument(timestampRepository, nameof(timestampRepository)).NotNull();
            Guard.Argument(userRepository, nameof(userRepository)).NotNull();
            Guard.Argument(pricePlanRepository, nameof(pricePlanRepository)).NotNull();
            Guard.Argument(ethHelper, nameof(ethHelper)).NotNull();
            Guard.Argument(timestampQueueService, nameof(timestampQueueService)).NotNull();
            Guard.Argument(basicWeb3, nameof(basicWeb3)).NotNull();
            Guard.Argument(premiumWeb3, nameof(premiumWeb3)).NotNull();

            _logger = logger;
            _timestampRepository   = timestampRepository;
            _userRepository        = userRepository;
            _pricePlanRepository   = pricePlanRepository;
            _ethHelper             = ethHelper;
            _timestampQueueService = timestampQueueService;

            _basicWeb3   = basicWeb3;
            _premiumWeb3 = premiumWeb3;
        }
Exemplo n.º 2
0
        public void Setup()
        {
            ethClientMock = new Mock <IEthClient>();
            loggerMock    = new Mock <ILogger>();

            etheHelper = new EthHelper(new EthSettings {
            }, ethClientMock.Object, loggerMock.Object);
        }