public void UniqueNameCollection_ContainsName_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.Contains(world.Name);

            Assert.True(result);
        }
        public void UniqueNameCollection_ContainsName_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.Contains("test");

            Assert.False(result);
        }
        public void UniqueNameCollection_ContainsObject_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.Contains(world);

            Assert.True(result);
        }
        public void UniqueNameCollection_ContainsObject_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.Contains(test);

            Assert.False(result);
        }