Example #1
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 #2
0
 public GetPollTest(IVotingSystemService votingSystemService, ILogger logger)
 {
     _votingSystemService = votingSystemService;
     _logger        = logger;
     _getPollsReply = _votingSystemService.GetPolls(includeFinished: true).Result;
 }
Example #3
0
 public CastVoteTest(IVotingSystemService votingSystemService, ILogger logger)
 {
     _votingSystemService = votingSystemService;
     _logger = logger;
 }
 public CreatePollTest(IVotingSystemService votingSystemService, ILogger logger)
 {
     _votingSystemService = votingSystemService;
     _logger = logger;
 }