public void CreateObjectTest() { var country = new Country(13, "name"); Assert.AreEqual(13, country.Id); Assert.AreEqual("name", country.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 country = new Country("name"); Assert.IsFalse(country.HasId); }
protected bool Equals(Country other) { return string.Equals(Name, other.Name); }