Ejemplo n.º 1
0
		public AccountController(AccountService accountService, 
			AuthenticationService authenticationService, 
			EncryptionService encryptionService)
		{
			_accountService = accountService;
			_authenticationService = authenticationService;
			_encryptionService = encryptionService;
		}
Ejemplo n.º 2
0
		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;
		}