public void should_notify_all_attendees_when_canceled()
        {
            // arrange
            var notifier = new MockNotifier();
            var meeting = new Meeting(2);
            var attendees = new []{"m1", "m2"}.Select(m => meeting.CreateAndAddAttendee(m)).ToList();
            attendees.ForEach(meeting.AddAttendee);

            // act
            meeting.Cancel(notifier);

            // assert
            Assert.That(notifier.CalledAttendees, Is.EqualTo(attendees));
        }
        public void should_not_allow_to_register_when_cancelled()
        {
            // arrange
            var notifier = new MockNotifier();
            var meeting = new Meeting(1);

            // act
            meeting.Cancel(notifier);

            // assert
            Assert.Throws<MeetingCanceledException>(() => meeting.AddAttendee(new Attendee("foo")));
        }