/// <summary> /// Initializes a new instance of the <see cref="人"/> class. /// </summary> /// <param name="tenantId"> /// Initial value of the <see cref="TenantId"/> property. /// </param> /// <param name="name"> /// Initial value of the <see cref="Name"/> property. /// </param> /// <param name="contactInformation"> /// Initial value of the <see cref="ContactInformation"/> property. /// </param> public 人(テナントId tenantId, フルネーム name, コンタクト情報 contactInformation) { // Defer validation to the property setters. this.ContactInformation = contactInformation; this.Name = name; this.TenantId = tenantId; }
public コンタクト情報(コンタクト情報 contactInformation) : this(contactInformation.EmailAddress, contactInformation.PostalAddress, contactInformation.PrimaryTelephone, contactInformation.SecondaryTelephone) { }
public 人コンタクト情報変更時( テナントId tenantId, String username, コンタクト情報 contactInformation) { this.ContactInformation = contactInformation; this.EventVersion = 1; this.OccurredOn = DateTime.Now; this.TenantId = tenantId.Id; this.Username = username; }
public void ChangeContactInformation(コンタクト情報 newContactInformation) { // Defer validation to the property setter. this.ContactInformation = newContactInformation; DomainEventPublisher .Instance .Publish(new 人コンタクト情報変更時( this.TenantId, this.User.Username, this.ContactInformation)); }
public void ChangePersonalContactInformation(コンタクト情報 contactInformation) { this.Person.ChangeContactInformation(contactInformation); }