Esempio n. 1
0
        public void GlobalList_AddNonExistingList_Succeeded()
        {
            const string globalListName = "Aggregator - DoesNotExists";
            const string testItem       = "A new item";
            var          repository     = new WorkItemRepositoryMock(DefaultGlobalLists);

            repository.AddItemToGlobalList(globalListName, testItem);

            var gl = repository.GetGlobalList(globalListName).ToArray();

            Assert.IsNotNull(gl);
            Assert.AreEqual(1, gl.Length);
            Assert.AreEqual(testItem, gl[0]);
        }