public void TestNormalUserSync(IAuthenticationService service)
        {
            SignalGoTest2.Models.MessageContract resultAccess = service.AdminAccess();
            Assert.IsTrue(!resultAccess.IsSuccess && resultAccess.Message == "Session access denied!");

            SignalGoTest2.Models.MessageContract userAccess = service.UserAccess();
            Assert.IsTrue(!userAccess.IsSuccess && userAccess.Message == "Session access denied!");

            SignalGoTest2.Models.MessageContract gustAccess = service.GustAccess();
            Assert.IsTrue(gustAccess.IsSuccess && gustAccess.Message == "gust success");

            SignalGoTest2.Models.MessageContract <SignalGoTest2.Models.UserInfo> loginResult = service.Login("test", "test");
            Assert.IsTrue(!loginResult.IsSuccess && loginResult.Message == "Username or Password Incorrect!" && loginResult.Data == null);

            string whatIsMyNameGust = service.WhatIsMyName();

            Assert.IsTrue(whatIsMyNameGust == "Gust");

            SignalGoTest2.Models.MessageContract <SignalGoTest2.Models.UserInfo> normaloginResult = service.Login("user", "321");
            Assert.IsTrue(normaloginResult.IsSuccess && !normaloginResult.Data.IsAdmin && normaloginResult.Data.IsUser);
            HandleHttpSessions(service);

            string normalWhatIsMyNameGust = service.WhatIsMyName();

            Assert.IsTrue(normalWhatIsMyNameGust == "normal user");


            userAccess = service.UserAccess();
            Assert.IsTrue(userAccess.IsSuccess && userAccess.Message == "user success");

            gustAccess = service.GustAccess();
            Assert.IsTrue(gustAccess.IsSuccess && gustAccess.Message == "gust success");

            resultAccess = service.AdminAccess();
            Assert.IsTrue(!resultAccess.IsSuccess && resultAccess.Message == "Session access denied!");
        }
        /// <summary>
        //  admin user test
        /// </summary>
        /// <param name="service"></param>
        public void TestAdminUserSync(IAuthenticationService service)
        {
            SignalGoTest2.Models.MessageContract resultAdminAccess = service.AdminAccess();
            Assert.IsTrue(!resultAdminAccess.IsSuccess && resultAdminAccess.Message == "Session access denied!");

            SignalGoTest2.Models.MessageContract userAccess = service.UserAccess();
            Assert.IsTrue(!userAccess.IsSuccess && userAccess.Message == "Session access denied!");

            SignalGoTest2.Models.MessageContract gustAccess = service.GustAccess();
            Assert.IsTrue(gustAccess.IsSuccess && gustAccess.Message == "gust success");

            SignalGoTest2.Models.MessageContract <SignalGoTest2.Models.UserInfo> loginResult = service.Login("test", "test");
            Assert.IsTrue(!loginResult.IsSuccess && loginResult.Message == "Username or Password Incorrect!" && loginResult.Data == null);

            string whatIsMyNameAmIGust = service.WhatIsMyName();

            Assert.IsTrue(whatIsMyNameAmIGust == "Gust");

            SignalGoTest2.Models.MessageContract <SignalGoTest2.Models.UserInfo> adminLoginResult = service.Login("admin", "123");
            Assert.IsTrue(adminLoginResult.IsSuccess && adminLoginResult.Data.IsAdmin && adminLoginResult.Data.FullName == "admin user");
            HandleHttpSessions(service);

            string adminWhatIsMyNameAmIGust = service.WhatIsMyName();

            Assert.IsTrue(adminWhatIsMyNameAmIGust == "admin user");


            userAccess = service.UserAccess();
            Assert.IsTrue(userAccess.IsSuccess && userAccess.Message == "user success");

            gustAccess = service.GustAccess();
            Assert.IsTrue(gustAccess.IsSuccess && gustAccess.Message == "gust success");

            resultAdminAccess = service.AdminAccess();
            Assert.IsTrue(resultAdminAccess.IsSuccess && resultAdminAccess.Message == "admin success");
        }