Пример #1
0
        public static void ClassSetup(TestContext context)
        {
            fixture = SparkTestFixture.Instance;
            Assert.IsNotNull(fixture);

            spark = fixture.CreateSpark();
            Assert.IsNotNull(spark);
        }
Пример #2
0
        public void SetUp()
        {
            fixture = SparkTestFixture.Instance;
            Assert.IsNotNull(fixture);

            //spark = fixture.spark;
            spark = fixture.CreateSpark();
            Assert.IsNotNull(spark);

            room = spark.Rooms;
            Assert.IsNotNull(room);
        }
Пример #3
0
        public static void ClassTearDown()
        {
            Console.WriteLine("ClassTearDown");
            if (myRoom != null)
            {
                DeleteRoom(myRoom.Id);
                myRoom = null;
            }

            fixture  = null;
            spark    = null;
            messages = null;
            myRoom   = null;
        }
Пример #4
0
        public void SetUp()
        {
            fixture = SparkTestFixture.Instance;
            Assert.IsNotNull(fixture);

            //spark = fixture.spark;
            spark = fixture.CreateSpark();
            Assert.IsNotNull(spark);

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

            myTeamInfo = CreateTeam(teamName);
            Validate(myTeamInfo);
        }
Пример #5
0
        public void SetUp()
        {
            fixture = SparkTestFixture.Instance;
            Assert.IsNotNull(fixture);

            //spark = fixture.spark;
            spark = fixture.CreateSpark();
            Assert.IsNotNull(spark);

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

            myTeamInfo = fixture.CreateTeam("test team");
            Assert.IsNotNull(myTeamInfo);
        }
Пример #6
0
        public void SetUp()
        {
            fixture = SparkTestFixture.Instance;
            Assert.IsNotNull(fixture);

            //spark = fixture.spark;
            spark = fixture.CreateSpark();
            Assert.IsNotNull(spark);

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

            other = fixture.CreatUser();
            Assert.IsNotNull(other);
        }
Пример #7
0
        public void SetUp()
        {
            fixture = SparkTestFixture.Instance;
            Assert.IsNotNull(fixture);

            //spark = fixture.spark;
            spark = fixture.CreateSpark();
            Assert.IsNotNull(spark);

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

            other  = fixture.CreatUser();
            myRoom = fixture.CreateRoom("test room");
        }
Пример #8
0
        public void SetUp()
        {
            fixture = SparkTestFixture.Instance;
            Assert.IsNotNull(fixture);

            //spark = fixture.spark;
            spark = fixture.CreateSpark();
            Assert.IsNotNull(spark);

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

            myRoom    = fixture.CreateRoom("test room");
            myWebHook = CreateWebHook();
            Assert.IsNotNull(myWebHook);
            Assert.IsNotNull(myWebHook.Id);
        }
Пример #9
0
        public void UnLoad()
        {
            if (instance == null)
            {
                return;
            }
            if (spark != null)
            {
                spark.Authenticator.Deauthorize();
            }
            if (jwtSpark != null)
            {
                jwtSpark.Authenticator.Deauthorize();
            }

            instance = null;
            Console.WriteLine("fixture unloaded");
        }
Пример #10
0
        public void SetUp()
        {
            fixture = SparkTestFixture.Instance;
            Assert.IsNotNull(fixture);

            //spark = fixture.spark;
            spark = fixture.CreateSpark();
            Assert.IsNotNull(spark);

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

            if (other == null)
            {
                other = fixture.CreatUser();
            }
            var room = fixture.CreateRoom("test room");

            Assert.IsNotNull(room);
            roomId = room.Id;
        }
Пример #11
0
        public static void ClassSetup(TestContext context)
        {
            Console.WriteLine("ClassSetup");
            fixture = SparkTestFixture.Instance;
            Assert.IsNotNull(fixture);

            spark = fixture.CreateSparkbyJwt();
            Assert.IsNotNull(spark);

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

            self = GetMe();

            other = fixture.CreatUser();

            myRoom = CreateRoom("my test room");
            Assert.IsNotNull(myRoom);

            if (StringExtention.GetHydraIdType(calleeAddress) == StringExtention.HydraIdType.People)
            {
                calleePersonId    = calleeAddress;
                calleePersonEmail = GetSpecificPerson(calleePersonId)?.Emails[0];
            }
            else if (calleeAddress.Contains("@"))
            {
                calleePersonEmail = calleeAddress;
                calleePersonId    = GetPerson(calleeAddress).Id;
            }
            else
            {
            }
            Assert.IsNotNull(CreateMembership(myRoom.Id, null, calleePersonId, false));

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

            Thread.Sleep(30000);
        }
Пример #12
0
 public static void ClassTearDown()
 {
     fixture = null;
     spark   = null;
 }