Exemple #1
0
        public void ExistingCustomerLogInSuccessFul()
        {
            //Customer account created for the test
            var newCustomer = new Customer("Emperor", "Idowu", "*****@*****.**", "free", "coolguy");

            //get username
            const string username = "******";
            //get password
            const string password = "******";

            //call the Login method
            newCustomer.LoggedInCheck(username, password);

            //if the username and password is correct, loggedIn will be set to true
            Assert.That(newCustomer.LoggedIn);
            newCustomer.LoggedOut();
        }