public ViewAESViewModel(
     IEventAggregator eventAggregator,
     IAESCryptographicService aesCryptographicService,
     IAESSerializationService aesSerializaionService)
 {
     this.eventAggregator         = eventAggregator;
     this.aesCryptographicService = aesCryptographicService;
     this.aesSerializaionService  = aesSerializaionService;
     eventAggregator.GetEvent <AESMessageSentEvent>()
     .Subscribe(ExecuteMessage);
 }
 public EmailSettingsService(
     IEmailSettingsConverter emailSettingsConverter,
     IEnumerable <IEncryptedDataStoreService> encryptedDataStoreServices,
     IAESCryptographicService aesCryptographicService,
     ICryptographicKeyService cryptographicKeyService)
 {
     this.emailSettingsConverter = emailSettingsConverter;
     encryptedDtaStoreService    = encryptedDataStoreServices
                                   .FirstOrDefault(f => f.GetType() == typeof(EncryptedEmailSettingsStoreService));
     this.aesCryptographicService = aesCryptographicService;
     aesCryptographicService.Key  = cryptographicKeyService.GetKey();
 }
 public CryptographicKeyService(
     IEnumerable <IEncryptedDataStoreService> keyServices,
     IGenericCryptographicService genericCryptographicService,
     IAESCryptographicService aesCryptographicService,
     IAESKeyConverterService aesConverterService)
 {
     keyService = keyServices
                  .FirstOrDefault(f => f.GetType() == typeof(EncryptedKeyStoreService));
     this.genericCryptographicService = genericCryptographicService;
     this.aesCryptographicService     = aesCryptographicService;
     this.aesConverterService         = aesConverterService;
 }