Example #1
0
 public AssetExchangeController(INotificationHandler <DomainNotification> notifications,
                                IUser user,
                                IAssetExchangeService assetExchangeService)
     : base(notifications, user)
 {
     _assetExchangeService = assetExchangeService;
 }
Example #2
0
 public NxtConnector(IServiceFactory serviceFactory)
 {
     accountService        = serviceFactory.CreateAccountService();
     monetarySystemService = serviceFactory.CreateMonetarySystemService();
     assetExchangeService  = serviceFactory.CreateAssetExchangeService();
     taggedDataService     = serviceFactory.CreateTaggedDataService();
 }
Example #3
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;
        }
Example #4
0
 public AssetExchangeServiceTest(IAssetExchangeService service, ILogger logger)
 {
     _service = service;
     _logger  = logger;
 }