public void CreateObjectTest()
        {
            var artist = new Artist("name", null, null, null, "email", "videourl", false);
            var venue = new Venue("shortname", "name", null, null);
            var performance = new Performance(13, DateTime.Now, artist, venue);

            Assert.AreEqual(13, performance.Id);
            Assert.AreEqual(artist, performance.Artist);
            Assert.AreEqual(venue, performance.Venue);
        }
 public void CreateObjectTest()
 {
     var artist = new Artist(13, "name", null, null, null, "email", "videourl", false);
     Assert.AreEqual(13, artist.Id);
     Assert.AreEqual("name", artist.Name);
     Assert.AreEqual(null, artist.Category);
     Assert.AreEqual(null, artist.Country);
     Assert.AreEqual(null, artist.Image);
     Assert.AreEqual("email", artist.Email);
     Assert.AreEqual("videourl", artist.VideoUrl);
     Assert.AreEqual(false, artist.IsDeleted);
 }
 public List<Performance> GetUpcomingPerformancesByArtist(Artist artist)
 {
     return Implementation_Server.PerformanceServer.GetUpcomingByArtist(artist).ToList();
 }
 public Performance(DateTime dateTime, Artist artist, Venue venue)
 {
     DateTime = dateTime;
     Artist = artist;
     Venue = venue;
 }
 public Performance(int id, DateTime dateTime, Artist artist, Venue venue)
     : this(dateTime, artist, venue)
 {
     Id = id;
 }
 protected bool Equals(Artist other)
 {
     return Equals(Category, other.Category) && Equals(Country, other.Country)
            && string.Equals(Email, other.Email) && string.Equals(Image, other.Image)
            && IsDeleted == other.IsDeleted && string.Equals(Name, other.Name)
            && string.Equals(VideoUrl, other.VideoUrl);
 }
        public void CreateNoIdObjectTest()
        {
            var artist = new Artist("name", null, null, null, "email", "videourl", false);

            Assert.IsFalse(artist.HasId);
        }