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 venue = new Venue(13, "shortname", "name", 123.456m, null);

            Assert.AreEqual(13, venue.Id);
            Assert.AreEqual("shortname", venue.ShortName);
            Assert.AreEqual("name", venue.Name);

            Assert.IsNotNull(venue.Latitude);
            Assert.AreEqual(123.456m, venue.Latitude.Value);
            Assert.IsNull(venue.Longitude);
        }
        public void CreateNoIdObjectTest()
        {
            var venue = new Venue("shortname", "name", null, null);

            Assert.IsFalse(venue.HasId);
        }
 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(Venue other)
 {
     return Latitude == other.Latitude && Longitude == other.Longitude && string.Equals(Name, other.Name)
            && string.Equals(ShortName, other.ShortName);
 }