public void Should_CreateNewObjects_When_RequestInstance()
        {
            UpdateCollectionFactory factory = new UpdateCollectionFactory();

            IUpdateCollection coll1 = factory.GetInstance();
            IUpdateCollection coll2 = factory.GetInstance();

            Assert.IsNotNull(coll1);
            Assert.IsNotNull(coll2);
            Assert.AreNotSame(coll1, coll2);
        }
        /// <summary>
        /// Converts <see cref="IUpdate"/> enumerations to <see cref="IUpdateCollection"/>.
        /// </summary>
        private IUpdateCollection ToUpdateCollection(IEnumerable <IUpdate> updateList)
        {
            IUpdateCollection collection = UpdateCollectionFactory.GetInstance();

            if (updateList.Any())
            {
                foreach (IUpdate update in updateList)
                {
                    collection.Add(update);
                }
            }
            return(collection);
        }