Exemplo n.º 1
0
        public void SetUp()
        {
            fixture = WebexTestFixture.Instance;
            Assert.IsNotNull(fixture);

            //webex = fixture.webex;
            webex = fixture.CreateWebex();
            Assert.IsNotNull(webex);

            person = webex.People;
            Assert.IsNotNull(person);

            other = fixture.CreatUser();
            Assert.IsNotNull(other);
        }
Exemplo n.º 2
0
        public void SetUp()
        {
            fixture = WebexTestFixture.Instance;
            Assert.IsNotNull(fixture);

            //webex = fixture.webex;
            webex = fixture.CreateWebex();
            Assert.IsNotNull(webex);

            memberships = webex.Memberships;
            Assert.IsNotNull(memberships);

            if (other == null)
            {
                other = fixture.CreatUser();
            }
            var space = fixture.CreateSpace("test space");

            Assert.IsNotNull(space);
            spaceId = space.Id;
        }
Exemplo n.º 3
0
        public static void ClassSetup(TestContext context)
        {
            Console.WriteLine("ClassSetup");
            fixture = WebexTestFixture.Instance;
            Assert.IsNotNull(fixture);

            webex = fixture.CreateWebexbyJwt();
            Assert.IsNotNull(webex);

            messages = webex.Messages;
            Assert.IsNotNull(messages);

            self = GetMe();

            other = fixture.CreatUser();

            mySpace = CreateSpace("my test space");
            Assert.IsNotNull(mySpace);

            if (StringExtention.GetHydraIdType(calleeAddress) == StringExtention.HydraIdType.People)
            {
                calleePersonId    = calleeAddress;
                calleePersonEmail = GetSpecificPerson(calleePersonId)?.Emails[0];
            }
            else if (calleeAddress.Contains("@"))
            {
                calleePersonEmail = calleeAddress;
                calleePersonId    = GetPerson(calleeAddress).Id;
            }

            Assert.IsNotNull(CreateMembership(mySpace.Id, null, calleePersonId, false));

            fileUrl = Directory.GetCurrentDirectory() + "\\Resources\\" + "WebexTeams.jpg";

            Thread.Sleep(60000);
        }
Exemplo n.º 4
0
        public void ListTest()
        {
            var userOne = fixture.CreatUser();
            var userTwo = fixture.CreatUser();

            var memberOne = CreateTeamMemberShip(myTeamInfo.Id, null, userOne.Email, null);

            Validate(memberOne);
            var memberTwo = CreateTeamMemberShip(myTeamInfo.Id, null, userTwo.Email, null);

            Validate(memberTwo);
            var list = ListTeamMembership(myTeamInfo.Id);

            Assert.AreEqual(3, list.Count);
            var qurey = list.Find(teamMembership => teamMembership.PersonEmail == fixture.selfUser.Email);

            Validate(qurey);
            qurey = list.Find(teamMembership => teamMembership.PersonEmail == userOne.Email);
            Validate(qurey);
            qurey = list.Find(teamMembership => teamMembership.PersonId == userTwo.PersonId);
            Validate(qurey);
        }