/// <summary> /// Remove the account information from the customer /// </summary> public virtual void RemoveAccount() { Account = AccountInfo.EmptyAccount(); }
/// <summary> /// Construct the customer /// </summary> protected Customer() { Account = AccountInfo.EmptyAccount(); this.ShippingAddresses = new HashSet <ShippingAddress>(); this.BillingInformation = new HashSet <BillingInfo>(); }
/// <summary> /// Set the account associated to the customer /// </summary> /// <param name="userId">The user id</param> /// <param name="userName">The username</param> public virtual void SetAccount(Guid userId, string userName) { Account = new AccountInfo { UserId = userId, UserName = userName }; }