public void Crete_New_MeetupEvent_Add_Assistants() { var meetupEvent = new MeetupEvent(); _context.Add(meetupEvent); _context.SaveChanges(); meetupEvent.AddAssistant(_context.Users.First()); _context.SaveChanges(); meetupEvent.Assistants.Count().Should().Be(1); _context.Remove(meetupEvent); _context.SaveChanges(); }
public void Crete_New_MeetupEvent_Add_Assistants() { //TODO: 04 - Creo un nuevo evento y le agrego un asistente var meetupEvent = new MeetupEvent(); _context.Add(meetupEvent); _context.SaveChanges(); meetupEvent.AddAssistant(_context.Users.First()); _context.SaveChanges(); meetupEvent.Assistants.Count().Should().Be(1); _context.Remove(meetupEvent); _context.SaveChanges(); }