public void UniqueNameCollection_RemoveObject_ReturnTrue()
        {
            var hello = new Order("hello");
            var world = new Order("world");

            var orders = new List <Order>()
            {
                hello, world
            };

            var uniqueNameCollection = new UniqueNameCollection <Order>(orders);

            var result = uniqueNameCollection.Remove(world);

            Assert.True(result);
        }
        public void UniqueNameCollection_RemoveName_ReturnFalse()
        {
            var hello = new Order("hello");
            var world = new Order("world");

            var orders = new List <Order>()
            {
                hello, world
            };

            var uniqueNameCollection = new UniqueNameCollection <Order>(orders);

            var result = uniqueNameCollection.Remove("test");

            Assert.False(result);
        }
        public void UniqueNameCollection_RemoveObject_ReturnFalse()
        {
            var hello = new Order("hello");
            var world = new Order("world");
            var test = new Order("test");

            var orders = new List<Order>() { hello, world };

            var uniqueNameCollection = new UniqueNameCollection<Order>(orders);

            var result = uniqueNameCollection.Remove(test);

            Assert.False(result);
        }
        public void UniqueNameCollection_RemoveName_ReturnTrue()
        {
            var hello = new Order("hello");
            var world = new Order("world");

            var orders = new List<Order>() { hello, world };

            var uniqueNameCollection = new UniqueNameCollection<Order>(orders);

            var result = uniqueNameCollection.Remove(world.Name);

            Assert.True(result);
        }