예제 #1
0
 public VoterTally(ICacheOperation cacheOperation)
 {
     _cacheOperation  = cacheOperation;
     voterTallyDB     = new VoterTalleyDB();
     selfRegistration = new SelfRegistration(cacheOperation);
     voteCandidate    = new VoteCandidate(cacheOperation);
 }
예제 #2
0
        public DemoPresenter(IDemoView view)
        {
            _view      = view;
            _operation = new CacheOperation();
            DeviceCache cacheInstance = DeviceCache.GetInstance();

            cacheInstance.AddAction    += AddDeviceToView;
            cacheInstance.RemoveAction += RemoveDeviceFromView;
        }
예제 #3
0
 public VoteCandidate(ICacheOperation cacheOperation)
 {
     _cacheOperation = cacheOperation;
     //_toafcContextOptions = toafcContextOptions;
     voteCandidateDB = new VoteCandidateDB();
 }
예제 #4
0
 public VotePeriod(ICacheOperation cacheOperation)
 {
     _cacheOperation = cacheOperation;
     votePeriodDB    = new VotePeriodDB();
 }
예제 #5
0
 public VotePeriodController(ICacheOperation cacheOperation) //: base(toafcContextOptions, cacheOperation)
 {
     votePeriod = new VotePeriod(cacheOperation);
 }
예제 #6
0
 public SelfRegistrationController(ICacheOperation cacheOperation)
 {
     voterRegistration = new SelfRegistration(cacheOperation);
 }
예제 #7
0
 public SelfRegistration(ICacheOperation cacheOperation)
 {
     _cacheOperation    = cacheOperation;
     voteRegistrationDB = new SelfRegistrationDB();
 }
예제 #8
0
 public VotingEnabled(ICacheOperation cacheOperation)
 {
     _cacheOperation = cacheOperation;
 }
예제 #9
0
 public VoterTalleyController(ICacheOperation cacheOperation)
 {
     voterTally = new VoterTally(cacheOperation);
 }
예제 #10
0
 public BaseController(DbContextOptions <toafcContext> toafcContext = null, ICacheOperation cacheOperation = null)
 {
     _toafcContext   = toafcContext;
     _cacheOperation = cacheOperation;
 }
예제 #11
0
 public VotingEnabledController(ICacheOperation cacheOperation)
 {
     votingEnabled = new VotingEnabled(cacheOperation);
 }
예제 #12
0
 public VoterRegistration(ICacheOperation cacheOperation)
 {
     _cacheOperation    = cacheOperation;
     voteRegistrationDB = new VoteRegistrationDB();
 }
예제 #13
0
 public VoteCandidateController(ICacheOperation cacheOperation) //: base(toafcContextOptions, cacheOperation)
 {
     voteCandidate = new VoteCandidate(cacheOperation);
 }