public AccountController(AccountService accountService, AuthenticationService authenticationService, EncryptionService encryptionService) { _accountService = accountService; _authenticationService = authenticationService; _encryptionService = encryptionService; }
public void EncryptDecrypt() { EncryptionService service = new EncryptionService(); String originalContents = "My content to be encrypted"; String encContents = service.Encrypt(originalContents); Assert.IsNotNull( encContents ); Assert.IsFalse( encContents.Equals(originalContents) ); String restoredContents = service.Decrypt(encContents); Assert.AreEqual( originalContents, restoredContents ); }
public AuthenticationAttemptFilter(AccountService accountService, EncryptionService encryptionService) : base(accountService, encryptionService) { }
public AuthenticationCheckFilter(AccountService accountService, EncryptionService encryptionService) { _accountService = accountService; _encryptionService = encryptionService; }