Exemplo n.º 1
0
        public void AddAiringToDataStore(string airing, string testName, string expectedQueue, string ignoredQueue = "")
        {
            var model = new AiringDataStore(airing)
            {
                AssetShouldExistsInCurrentCollection = true,
                TestName         = testName,
                ExpectedQueues   = new List <string>(),
                UnExpectedQueues = new List <string>(),
                IsDeleted        = false,
                IgnoredQueues    = new List <string>()
            };

            if (expectedQueue != "")
            {
                model.ExpectedQueues.Add(expectedQueue);
            }
            if (ignoredQueue != "")
            {
                model.IgnoredQueues.Add(ignoredQueue);
            }

            model.AddMessage(string.Format("Airing successfully posted."));

            _processedAirings.Add(model);
        }
Exemplo n.º 2
0
        public void AddAiringToDataStore(string airing, bool assetShouldExistsInCurrentCollection, string testName, string expectedQueue = "", string unexpectedQueue = "", bool isDeleted = false)
        {
            var model = new AiringDataStore(airing)
            {
                AssetShouldExistsInCurrentCollection = assetShouldExistsInCurrentCollection,
                TestName  = testName,
                IsDeleted = isDeleted,
                Priority  = null
            };

            if (expectedQueue != "")
            {
                model.ExpectedQueues.Add(expectedQueue);
            }
            if (unexpectedQueue != "")
            {
                model.UnExpectedQueues.Add(unexpectedQueue);
            }

            model.AddMessage(string.Format("Airing successfully posted."));

            _processedAirings.Add(model);
        }