public ReservationAcceptedEvent ( System.Guid id, System.DateTime date, string name, string email, int quantity ) : System | ||
id | System.Guid | |
date | System.DateTime | |
name | string | |
string | ||
quantity | int | |
return | System |
public ReservationAcceptedEvent(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;
}