public void AssertValuesHaveBeenCopied()
        {
            var mockItem = new MockItem();

            var serializableItem = new SerializableItem(mockItem);

            Assert.AreEqual(mockItem.Id, serializableItem.Id);
            Assert.AreEqual(mockItem.Name, serializableItem.Name);
            Assert.AreEqual(mockItem.ItemCategory, serializableItem.ItemCategory);
        }
        public void AssertToItemCopyAllProperties()
        {
            var item = new StubIItem
            {
                IdGet = () => 1,
                NameGet = () => "Test",
                ItemCategoryGet = () => new StubIItemCategory()
            };

            var convertedItem = new SerializableItem(item).ToIItem();

            Assert.IsNotNull(convertedItem);
            Assert.AreEqual(item.IdGet(), convertedItem.Id);
            Assert.AreEqual(item.NameGet(), convertedItem.Name);
            Assert.IsNotNull(item.ItemCategoryGet());
        }