public static void ClassSetup(TestContext context)
        {
            fixture = WebexTestFixture.Instance;
            Assert.IsNotNull(fixture);

            webex = fixture.CreateWebex();
            Assert.IsNotNull(webex);
        }
        public void SetUp()
        {
            fixture = WebexTestFixture.Instance;
            Assert.IsNotNull(fixture);

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

            space = webex.Spaces;
            Assert.IsNotNull(space);
        }
        public static void ClassTearDown()
        {
            Console.WriteLine("ClassTearDown");
            if (mySpace != null)
            {
                DeleteSpace(mySpace.Id);
                mySpace = null;
            }

            fixture  = null;
            webex    = null;
            messages = null;
            mySpace  = null;
        }
Beispiel #4
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);
        }
Beispiel #5
0
        public void SetUp()
        {
            fixture = WebexTestFixture.Instance;
            Assert.IsNotNull(fixture);

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

            teamMemberships = webex.TeamMemberships;
            Assert.IsNotNull(teamMemberships);

            myTeamInfo = fixture.CreateTeam("test team");
            Assert.IsNotNull(myTeamInfo);
        }
        public void SetUp()
        {
            fixture = WebexTestFixture.Instance;
            Assert.IsNotNull(fixture);

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

            teams = webex.Teams;
            Assert.IsNotNull(teams);

            myTeamInfo = CreateTeam(teamName);
            Validate(myTeamInfo);
        }
        public void SetUp()
        {
            fixture = WebexTestFixture.Instance;
            Assert.IsNotNull(fixture);

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

            webhooks = webex.Webhooks;
            Assert.IsNotNull(webhooks);

            mySpace   = fixture.CreateSpace("test space");
            myWebHook = CreateWebHook();
            Assert.IsNotNull(myWebHook);
            Assert.IsNotNull(myWebHook.Id);
        }
Beispiel #8
0
        public void UnLoad()
        {
            if (instance == null)
            {
                return;
            }
            if (webex != null)
            {
                webex.Authenticator.Deauthorize();
            }
            if (jwtWebex != null)
            {
                jwtWebex.Authenticator.Deauthorize();
            }

            instance = null;
            Console.WriteLine("fixture unloaded");
        }
Beispiel #9
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;
        }
        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);
        }
 public static void ClassTearDown()
 {
     fixture = null;
     webex   = null;
 }