Ploeh.Samples.Booking.DomainModel.ReservationRejectedEvent.ReservationRejectedEvent C# (CSharp) Méthode

ReservationRejectedEvent() public méthode

public ReservationRejectedEvent ( System.Guid id, System.DateTime date, string name, string email, int quantity ) : System
id System.Guid
date System.DateTime
name string
email string
quantity int
Résultat System
        public ReservationRejectedEvent(Guid id, DateTime date, string name, string email, int quantity)
        {
            if (id == Guid.Empty)
            {
                throw new ArgumentException("Guid.Empty is not a valid value for id.", "id");
            }
            if (name == null)
            {
                throw new ArgumentNullException("name");
            }
            if (email == null)
            {
                throw new ArgumentNullException("email");
            }

            this.id = id;
            this.date = date;
            this.name = name;
            this.email = email;
            this.quantity = quantity;
        }
ReservationRejectedEvent