Example #1
0
 /// <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 人名変更時(
         テナントId tenantId,
         String username,
         フルネーム name)
 {
     this.EventVersion = 1;
     this.Name = name;
     this.OccurredOn = DateTime.Now;
     this.TenantId = tenantId.Id;
     this.Username = username;
 }
 public ユーザー登録時(
         テナントId tenantId,
         String username,
         フルネーム name,
         Emailアドレス emailAddress)
 {
     this.EmailAddress = emailAddress;
     this.EventVersion = 1;
     this.Name = name;
     this.OccurredOn = DateTime.Now;
     this.TenantId = tenantId.Id;
     this.Username = username;
 }
 public テナント管理者登録時(
     テナントId tenantId,
     string name,
     フルネーム administorName,
     Emailアドレス emailAddress,
     string username,
     string temporaryPassword)
 {
     this.AdministorName = administorName;
     this.EventVersion = 1;
     this.Name = name;
     this.OccurredOn = DateTime.Now;
     this.TemporaryPassword = temporaryPassword;
     this.TenantId = tenantId.Id;
 }
Example #5
0
        public void ChangeName(フルネーム newName)
        {
            // Defer validation to the property setter.
            this.Name = newName;

            DomainEventPublisher
                .Instance
                .Publish(new 人名変更時(
                        this.TenantId,
                        this.User.Username,
                        this.Name));
        }
 public void ChangePersonalName(フルネーム personalName)
 {
     this.Person.ChangeName(personalName);
 }
 public フルネーム(フルネーム fullName)
     : this(fullName.FirstName, fullName.LastName)
 {
 }