Beispiel #1
0
        public IEnumerable <Messages.Common.Event> ChangeEventTitle(IHoldEventState state, Guid id, string title)
        {
            if (string.IsNullOrEmpty(title))
            {
                throw new ArgumentNullException(nameof(title));
            }

            yield return(new EventTitleUpdated(id, title));
        }
        public IEnumerable <Event> CreateEvent(IHoldEventState state, Guid id, string title, string description)
        {
            if (string.IsNullOrEmpty(title))
            {
                throw new ArgumentNullException(nameof(title));
            }

            yield return(new EventCreated(id, title, description));
        }