public void SameInputEncryptedTwiceComparison()
        {
            var service = new CryptographyService();
            var input = "test";

            var encryptOne = service.Encrypt(input);
            var encryptTwo = service.Encrypt(input);

            Assert.AreEqual(encryptOne, encryptTwo);
        }
 public AuthenticationService(IAdministratorRepository administratorRepository, IAdvertiserRepository advertiserRepository, CryptographyService cryptographyService)
 {
     _administratorRepository = administratorRepository;
     _advertiserRepository    = advertiserRepository;
     _cryptographyService     = cryptographyService;
 }
 public AdministratorAccountService(IAdministratorRepository administratorRepository, CryptographyService cryptographyService)
 {
     _administratorRepository = administratorRepository;
     _cryptographyService = cryptographyService;
 }
 public AdvertiserAccountService(IAdvertiserRepository advertiserRepository, CryptographyService cryptographyService)
 {
     _advertiserRepository = advertiserRepository;
     _cryptographyService = cryptographyService;
 }
 public AdvertiserAccountService(IAdvertiserRepository advertiserRepository, CryptographyService cryptographyService)
 {
     _advertiserRepository = advertiserRepository;
     _cryptographyService  = cryptographyService;
 }
Esempio n. 6
0
 public AdministratorAccountService(IAdministratorRepository administratorRepository, CryptographyService cryptographyService)
 {
     _administratorRepository = administratorRepository;
     _cryptographyService     = cryptographyService;
 }
 public AuthenticationService(IAdministratorRepository administratorRepository, IAdvertiserRepository advertiserRepository, CryptographyService cryptographyService)
 {
     _administratorRepository = administratorRepository;
     _advertiserRepository = advertiserRepository;
     _cryptographyService = cryptographyService;
 }