Пример #1
0
 protected void OnCustomerAdded(CustomerAddedEvent e)
 {
     _firstName = e.FirstName;
     _lastName = e.LastName;
     _age = e.Age;
     _email = e.Email;
 }
Пример #2
0
 public Customer(string firstName, string lastName, int age, string email)
 {
     var e = new CustomerAddedEvent {Age = age, Email = email, FirstName = firstName, LastName = lastName};
     ApplyEvent(e);
 }