Example #1
0
        public void AddEventArtistTest()
        {
            Event evt = Event.NewEvent();

            evt.EventID = -1;

            Artist artist = Artist.NewArtist();

            artist.ArtistID = -1;

            Instrument instrument = Instrument.NewInstrument();

            instrument.InstrumentID = -1;

            EventArtist eventArtist = EventArtist.AddEventArtist(evt, artist, instrument);

            Assert.IsNotNull(eventArtist);
            Assert.IsTrue(eventArtist.EventID == evt.EventID && eventArtist.ArtistID == artist.ArtistID);
        }