/// <summary>
        /// The btn login_ click.
        /// </summary>
        /// <param name="sender">
        /// The sender.
        /// </param>
        /// <param name="e">
        /// The e.
        /// </param>
        protected void btnLogin_Click(object sender, EventArgs e)
        {
            // Textfields
            var emailadress = this.txtEmailAddress.Text;
            var password = this.txtPassword.Text;

            if (!string.IsNullOrEmpty(emailadress) || !string.IsNullOrEmpty(password))
            {
                var authentic = new CustomerLogic(new CustomerOracleContext());
                if (authentic.CheckEmailValidation(emailadress)) // checks emailadress & password
                {
                    var verified = authentic.GetByEmailAndPassword(emailadress, authentic.GetHashedPassword(password));
                    if (verified != null) // if user is found makes cookies
                    {
                        FormsAuthentication.RedirectFromLoginPage(verified.Emailaddress, this.chkRememberMe.Checked);
                    }
                    else
                    {
                        this.lblError.Visible = true;
                        this.lblError.Text = "Verkeerde inloggegevens";
                    }
                }
                else
                {
                    this.lblError.Visible = true;
                    this.lblError.Text = "Geen correct emailadres gebruikt";
                }
            }
            else
            {
                this.lblError.Visible = true;
                this.lblError.Text = "Bepaalde velden zijn leeg.";
            }
        }
 public void GetCustomerByEmailPassword()
 {
     var logic = new CustomerLogic(new CustomerOracleContext());
     var customer = logic.GetByEmailAndPassword("*****@*****.**", logic.GetHashedPassword("welkom"));
     Assert.IsNotNull(customer, "Getting customer by email & password failed");
 }