public void TestSetup()
 { 
     var deploymentDirectory = TestContext.DeploymentDirectory;
     rsaHelper = new RsaHelper(Path.Combine(deploymentDirectory, "TestCertificate.pfx"), "test");
     tableManager = new SymmetricKeyTableManager(TableName,acct);
     tableManager.CreateTableIfNotExists();
 }
 public PadronVotacionService(
     IPadronVotacionRepository padronVotacionRepository,
     IApiResponseMessage apiResponseMessage,
     ISesionService sesionService,
     IRsaHelper rsaService
     )
 {
     _padronVotacionRepository = padronVotacionRepository;
     _apiResponseMessage       = apiResponseMessage;
     _sesionService            = sesionService;
     _rsaService = rsaService;
 }
Example #3
0
 public MesaVotoService(
     IApiResponseMessage apiResponseMessage,
     IRsaHelper rsaHelper,
     IAesService aesService,
     IVotoRepository votoRepository,
     IOpcionRepository opcionRepository
     )
 {
     _apiResponseMessage = apiResponseMessage;
     _rsaHelper          = rsaHelper;
     _aesService         = aesService;
     _votoRepository     = votoRepository;
     _opcionRepository   = opcionRepository;
 }
 public SymmetricKeyCache(IRsaHelper theRsaHelper, ISymmetricKeyTableManager keyTableManager)
 {
     rsaHelper = theRsaHelper;
     symmetricKeyTableManager = keyTableManager;
     Init();
 }
Example #5
0
 public AuthController(IAccountRepository accountRepository, IRsaHelper rsaHelper)
 {
     this.accountRepository = accountRepository;
     this.rsaHelper         = rsaHelper;
 }