public void Equals_OtherIdIsNotEqual_ReturnsFalse()
        {
            // Arrange
            var categorySuggestion = new CategorySuggestion
            {
                CategoryName = "Torches & Accs",
                CategoryId = 36864,
                ParentName = "Batteries Torches",
                ParentId = 36856
            };

            var otherCategorySuggestion = new CategorySuggestion
            {
                CategoryName = "Torches & Accs",
                CategoryId = 36865,
                ParentName = "Batteries Torches",
                ParentId = 36856
            };

            // Act
            bool equal = categorySuggestion.Equals(otherCategorySuggestion);

            // Assert
            Assert.IsFalse(equal);
        }
        public void Equals_OtherIsEqualNoParent_ReturnsTrue()
        {
            // Arrange
            var categorySuggestion = new CategorySuggestion
            {
                CategoryName = "Torches & Accs",
                CategoryId = 36864,
                ParentName = "",
                ParentId = 0
            };

            var otherCategorySuggestion = new CategorySuggestion
            {
                CategoryName = "Torches & Accs",
                CategoryId = 36864,
                ParentName = "",
                ParentId = 0
            };

            // Act
            bool equal = categorySuggestion.Equals(otherCategorySuggestion);

            // Assert
            Assert.IsTrue(equal);
        }
        public void ParseToString_ToStringThenParse_ReturnsSame()
        {
            // Arrange
            var categorySuggestion = new CategorySuggestion
            {
                CategoryName = "Torches & Accs",
                CategoryId = 36864,
                ParentName = "Batteries Torches",
                ParentId = 36856
            };

            // Act
            string serialised = categorySuggestion.ToString();
            var deserialised = CategorySuggestion.Parse(serialised);

            // Assert
            Assert.IsTrue(categorySuggestion.Equals(deserialised));
            Assert.AreEqual(categorySuggestion.HasParent, deserialised.HasParent);
        }
        public void HasParent_HasParent_ReturnsTrue()
        {
            // Arrange
            var categorySuggestion = new CategorySuggestion
            {
                CategoryName = "Torches & Accs",
                CategoryId = 36864,
                ParentName = "Batteries Torches",
                ParentId = 36856
            };

            // Act

            // Assert
            Assert.IsTrue(categorySuggestion.HasParent);
        }