Пример #1
0
        //[Test]
        public async Task RunProfileTest()
        {
            IESession session = new IESession(this);

            Assert.False(session.LoggedIn, "State of LoggedIn on IESession was not the expected value");

            bool result = await session.Login("we should be together", "twenty1%fat");

            Assert.True(result, "Result result of login was not the expected value");
            Assert.True(session.LoggedIn, "State of LoggedIn on IESession was not the expected value");


            //var searchResults = await session.Search(true, 20, 99, "33,50");
            IEMember member = new IEMember()
            {
                ProfileId = "1145973"
            };
            var profileResults = await session.GetProfile(member);

            result = await session.Logout();

            Assert.False(session.LoggedIn, "State of LoggedIn on IESession was not the expected value");

            return;
        }
Пример #2
0
        //[Test]
        public async Task RunLoginTest()
        {
            IESession session = new IESession(this);

            Assert.False(session.LoggedIn, "State of LoggedIn on IESession was not the expected value");

            bool result = await session.Login("we should be together", "twenty1%fat");

            Assert.True(result, "Result result of login was not the expected value");
            Assert.True(session.LoggedIn, "State of LoggedIn on IESession was not the expected value");


            var searchResults = await session.MatchFinder(true, 20, 99, "33,50");

            result = await session.Logout();

            Assert.False(session.LoggedIn, "State of LoggedIn on IESession was not the expected value");

            LogInfo("Found " + searchResults.Count + " results");

            return;
        }