public void Given_meeting_and_attendie()
        {
            _meeting = new Meeting("DDD Quest Meeting");

            // Act
            _attendie = _meeting.RegisterAttendie("Ivan Korneliuk");
        }
        public void Given_meeting_and_attendie()
        {
            _meeting = new KyivBeerNCode.Domain.Meetings.Meeting("DDD Quest Meeting");

            // Act
            _attendie = _meeting.RegisterAttendie("Ivan Korneliuk");
        }
        public void Given_newelly_create_meeting()
        {
            var env = TestEnvironment.Create();
            var registrator = env.Resolve<MeetingRegistrator>();

            _justCreatedMeeting = registrator.Register("Fuuny Meeting");
        }
        public Meeting Register(string title)
        {
            if (_meetings.ExisitsByTitle(title))
            {
                throw new DomainException("Event with title " + title + " already exists");
            }

            var @event = new Meeting(title);
            _meetings.Add(@event);

            return @event;
        }
 public void Add(Meeting meeting)
 {
     _uow.Add(meeting);
 }