예제 #1
0
        public void Session_can_be_under_consideration_when_to_few_accepts()
        {
            var session = new GameNight(GameNightState.Suggested, 2);

            var attendee = new User();
            session.AddAttendee(attendee);

            Assert.IsFalse(session.IsScheduled());
        }
예제 #2
0
        public void SessionSuggestion_can_have_attendandts()
        {
            var session = new GameNight(GameNightState.Suggested, 1);

            var attendee = new User();
            session.AddAttendee(attendee);

            Assert.AreEqual(attendee, session.GetAttendees().First());
        }
예제 #3
0
 public void AddAttendee(User attendee)
 {
     _registeredUsers.Add(attendee);
 }