示例#1
0
        /// <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);
        }
示例#2
0
        /// <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;
        }
示例#3
0
        /// <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;
        }
示例#4
0
 /// <summary>
 /// Revises the billing office cache.
 /// </summary>
 /// <param name="billingOfficeCache">
 /// The billing office cache.
 /// </param>
 public virtual void ReviseBillingOfficeCache(BillingOfficeCache billingOfficeCache)
 {
     BillingOfficeCache = billingOfficeCache;
 }
示例#5
0
 /// <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;
 }
示例#6
0
 /// <summary>
 /// Revises the billing office cache.
 /// </summary>
 /// <param name="billingOfficeCache">
 /// The billing office cache.
 /// </param>
 public virtual void ReviseBillingOfficeCache( BillingOfficeCache billingOfficeCache )
 {
     BillingOfficeCache = billingOfficeCache;
 }