コード例 #1
0
        private void AddBillingOfficePhone(BillingOfficePhoneDto billingOfficePhoneDto, BillingOffice billingOffice)
        {
            var phoneType = _mappingHelper.MapLookupField <BillingOfficePhoneType> (billingOfficePhoneDto.BillingOfficePhoneType);

            var phoneNumber = new PhoneBuilder()
                              .WithPhoneNumber(billingOfficePhoneDto.PhoneNumber)
                              .WithPhoneExtensionNumber(billingOfficePhoneDto.Extension)
                              .Build();

            var billingOfficePhone = new BillingOfficePhone(phoneType, phoneNumber);

            billingOffice.AddPhoneNumber(billingOfficePhone);
        }
コード例 #2
0
 private static void RemoveBillingOfficePhone(
     BillingOfficePhoneDto billingOfficePhoneDto, BillingOffice billingOffice, BillingOfficePhone billingOfficePhone)
 {
     billingOffice.RemovePhoneNumber(billingOfficePhone);
 }
コード例 #3
0
 private void ChangeBillingOfficePhone(
     BillingOfficePhoneDto billingOfficePhoneDto, BillingOffice billingOffice, BillingOfficePhone billingOfficePhone)
 {
     RemoveBillingOfficePhone(billingOfficePhoneDto, billingOffice, billingOfficePhone);
     AddBillingOfficePhone(billingOfficePhoneDto, billingOffice);
 }