public void CreateObjectTest()
        {
            var category = new Category(13, "name");

            Assert.AreEqual(13, category.Id);
            Assert.AreEqual("name", category.Name);
        }
 public Artist(
     int id,
     string name,
     Category category,
     Country country,
     string image,
     string email,
     string videoUrl,
     bool isDeleted)
     : this(name, category, country, image, email, videoUrl, isDeleted)
 {
     Id = id;
 }
 public Artist(
     string name,
     Category category,
     Country country,
     string image,
     string email,
     string videoUrl,
     bool isDeleted)
 {
     Name = name;
     Category = category;
     Country = country;
     Image = image;
     Email = email;
     VideoUrl = videoUrl;
     IsDeleted = isDeleted;
 }
        public void CreateNoIdObjectTest()
        {
            var category = new Category("name");

            Assert.IsFalse(category.HasId);
        }
 protected bool Equals(Category other)
 {
     return string.Equals(Name, other.Name);
 }