Пример #1
0
 private static void AssertBasicProperties(Meetup meetup)
 {
     Assert.Equal(id, meetup.Id);
     Assert.Equal(title, meetup.Title);
 }
Пример #2
0
 public static void AssertClosed(Meetup meetup)
 {
     AssertBasicProperties(meetup);
     AssertExtendedProperties(meetup);
     Assert.Equal(MeetupState.Closed, meetup.State);
 }
Пример #3
0
 private static void AssertExtendedProperties(Meetup meetup)
 {
     Assert.Equal(location, meetup.Location);
     Assert.Equal(numberOfSeats, meetup.NumberOfSeats);
 }
Пример #4
0
 public static void AssertCreated(Meetup meetup)
 {
     AssertBasicProperties(meetup);
     Assert.Equal(MeetupState.Created, meetup.State);
 }