Ejemplo n.º 1
0
        private User(string first_name, string last_name, string email)
        {
            Id        = new UserID(Guid.NewGuid());
            FirstName = first_name;
            LastName  = last_name;
            Email     = email;

            // register here domain event
        }
Ejemplo n.º 2
0
 private User()
 {
     Id = new UserID(Guid.NewGuid());
 }