示例#1
0
 public NxtConnector(IServiceFactory serviceFactory)
 {
     accountService        = serviceFactory.CreateAccountService();
     monetarySystemService = serviceFactory.CreateMonetarySystemService();
     assetExchangeService  = serviceFactory.CreateAssetExchangeService();
     taggedDataService     = serviceFactory.CreateTaggedDataService();
 }
示例#2
0
        public GetPollResultTest(IServiceFactory serviceFactory, ILogger logger)
        {
            _votingSystemService   = serviceFactory.CreateVotingSystemService();
            _transactionService    = serviceFactory.CreateTransactionService();
            _assetExchangeService  = serviceFactory.CreateAssetExchangeService();
            _monetarySystemService = serviceFactory.CreateMonetarySystemService();

            _logger   = logger;
            _getPolls = _votingSystemService.GetPolls(includeFinished: true).Result;
        }
示例#3
0
 public MonetarySystemServiceTest(ILogger logger, IMonetarySystemService service)
 {
     _logger  = logger;
     _service = service;
 }