Esempio n. 1
0
        internal Concert(ConcertId id,
                         EventTitleSummary eventTitle,
                         EventDescription eventDescription,
                         EventOrganizer organizer)
        {
            Organizer = organizer;

            Id = id ?? throw new ArgumentNullException(nameof(id));
            EventDescription = eventDescription ?? throw new ArgumentNullException(nameof(eventDescription));
            EventTitle       = eventTitle ?? throw new ArgumentNullException(nameof(eventTitle));
        }
Esempio n. 2
0
        internal Concert(ConcertId id,
                         EventTitleSummary eventTitle,
                         EventDescription eventDescription)
        {
            Id = id ?? throw new ArgumentNullException(nameof(id));
            EventDescription = eventDescription ?? throw new ArgumentNullException(nameof(eventDescription));
            EventTitle       = eventTitle ?? throw new ArgumentNullException(nameof(eventTitle));

            this.Apply(new ConcertCreated(eventTitle.GeoTitle(),
                                          eventTitle.EngTitle(),
                                          EventDescription.EventDate,
                                          EventDescription.Description)
                       );
        }
Esempio n. 3
0
 public void ChangeConcertTitle(string newGeoTitle, string newEngTitle)
 {
     EventTitle = new EventTitleSummary(new GeoTitle(newGeoTitle))
                  .WithAnotherTitle(new EngTitle(newEngTitle));
 }