예제 #1
0
        public void CreateUserByTokenVerify()
        {
            UserTokenLogic tokenlogic = new UserTokenLogic();
            var            list       = tokenlogic.GetUsertokenList();
            UserToken      token      = list.FirstOrDefault(u => u.Email == "*****@*****.**");
            bool           status     = tokenlogic.VerifyUserToken(token);

            if (status)
            {
                Registration reg = new Registration();
                reg.FirstName        = "pavithra";
                reg.LastName         = "S";
                reg.OrganizationName = "Fluke";
                reg.Email            = "*****@*****.**";
                reg.Password         = "******";
                reg.PhoneNumber      = "1234567890";

                // string id = logic.CreateUser(reg);
                // Assert.IsTrue(!String.IsNullOrEmpty(id));
            }
            else
            {
                Assert.Fail("Invalid Token");
            }
        }
        public IHttpActionResult GetAll()
        {
            var listToken = logic.GetUsertokenList();

            return(Ok(listToken));
        }