/// <summary> /// Creates the payor cache. /// </summary> /// <param name="billingOfficeCache"> /// The billing office cache. /// </param> /// <param name="name"> /// The name. /// </param> /// <param name="address"> /// The address. /// </param> /// <returns> /// The payor cache. /// </returns> public PayorCache CreatePayorCache(BillingOfficeCache billingOfficeCache, string name, Address address) { var payorCache = new PayorCache(billingOfficeCache, name, address); _payorCacheRepository.MakePersistent(payorCache); return(payorCache); }
/// <summary> /// Initializes a new instance of the <see cref="PayorCache"/> class. /// </summary> /// <param name="billingOfficeCache"> /// The billing office cache. /// </param> /// <param name="name"> /// The name. /// </param> /// <param name="address"> /// The address. /// </param> protected internal PayorCache(BillingOfficeCache billingOfficeCache, string name, Address address) { Check.IsNotNull(billingOfficeCache, () => BillingOfficeCache); Check.IsNotNull(name, () => Name); _billingOfficeCache = billingOfficeCache; _name = name; _address = address; }
/// <summary> /// Initializes a new instance of the <see cref="PayorCache"/> class. /// </summary> /// <param name="billingOfficeCache"> /// The billing office cache. /// </param> /// <param name="name"> /// The name. /// </param> /// <param name="address"> /// The address. /// </param> protected internal PayorCache( BillingOfficeCache billingOfficeCache, string name, Address address ) { Check.IsNotNull ( billingOfficeCache, () => BillingOfficeCache ); Check.IsNotNull ( name, () => Name ); _billingOfficeCache = billingOfficeCache; _name = name; _address = address; }
/// <summary> /// Revises the billing office cache. /// </summary> /// <param name="billingOfficeCache"> /// The billing office cache. /// </param> public virtual void ReviseBillingOfficeCache(BillingOfficeCache billingOfficeCache) { BillingOfficeCache = billingOfficeCache; }
/// <summary> /// Creates the payor cache. /// </summary> /// <param name="billingOfficeCache"> /// The billing office cache. /// </param> /// <param name="name"> /// The name. /// </param> /// <param name="address"> /// The address. /// </param> /// <returns> /// The payor cache. /// </returns> public PayorCache CreatePayorCache( BillingOfficeCache billingOfficeCache, string name, Address address ) { var payorCache = new PayorCache ( billingOfficeCache, name, address ); _payorCacheRepository.MakePersistent ( payorCache ); return payorCache; }
/// <summary> /// Revises the billing office cache. /// </summary> /// <param name="billingOfficeCache"> /// The billing office cache. /// </param> public virtual void ReviseBillingOfficeCache( BillingOfficeCache billingOfficeCache ) { BillingOfficeCache = billingOfficeCache; }