예제 #1
0
        public void TestForUserAuthentication()
        {
            User user = new User()
            {
                Email    = "hverma",
                Password = "******"
            };
            DBUserAuthenticationServices service = new DBUserAuthenticationServices();
            var result = service.AuthenticateUser(user);

            Assert.IsTrue(result);
        }
예제 #2
0
        public void TestForChangePassword()
        {
            User Buser = new User()
            {
                Email    = "dverma",
                Password = "******"
            };


            DBUserAuthenticationServices service = new DBUserAuthenticationServices();
            var expectedOutput = service.ChangePassword(Buser, "abcdefgh");

            Assert.IsTrue(expectedOutput);
        }