예제 #1
0
        public void ActiveToActiveAiringTest()
        {
            string airing = PostAiringTest(_airingObjectHelper.UpdateDates(_jsonString, 0), "Active to Active Airing test- Step 1");

            string updatedairing = _airingObjectHelper.UpdateAiringId(airing, _jsonString);

            string airingId = PostAiringTest(_airingObjectHelper.UpdateDates(updatedairing, 1), "Active to Active Airing test- Step 2");

            _queueTester.AddAiringToDataStore(airingId, true, "Active to Active Airing test", _cartoonQueueKey);;
        }
예제 #2
0
        public void ActiveToActiveAiringTest()
        {
            string airing = PostAiringTest(_airingObjectHelper.UpdateDates(_jsonString, 0), "Active to Active Airing test- Step 1");

            string updatedairing = _airingObjectHelper.UpdateAiringId(airing, _jsonString);

            string airingId = PostAiringTest(_airingObjectHelper.UpdateDates(updatedairing, 0), "Active to Active Airing test- Step 2");

            airingIds.Add(airingId);
        }
예제 #3
0
        public void MediaIdGeneration_PostAiringWithdifferentPlaylist_returns_NewMediaIdTest()
        {
            //JSON string with version with  AiringId
            string updatedairing = _airingObjectHelper.UpdateAiringId(AIRINGID, Resources.Resources.CartoonAiringWith3FlightsWithDifferentPlaylist);
            string airingId      = PostAiringTest(_airingObjectHelper.UpdateDates(updatedairing, 0), "Media Id Generation test");

            JObject response = new JObject();
            var     request  = new RestRequest("/v1/airing/" + airingId, Method.GET);

            Task.Run(async() =>
            {
                response = await _clientLocal.RetrieveRecord(request);
            }).Wait();


            // Assert
            Assert.NotEqual(MEDIAID, response.Value <string>(@"mediaId"));

            MEDIAID = response.Value <string>(@"mediaId");  // allocate new MediaId value to Old one
        }