protected override async Task <IEnumerable <AccountSummary> > RetrieveBillingAccountsByPolicyIdCore(int policyId)
        {
            var    formattedPolicyid = policyId.ToString().PadLeft(6, '0');
            string result            = await CallDuckCreek(DuckCreekServiceCallFactory.SearchForAccountByPolicyId(formattedPolicyid));

            //Should check for exceptions like not found and throw
            return(BillingAccountSearchToBillingAccountsSummary.FromXml(result));
        }
        protected override async Task <BillingAccountDetail> RetrieveBillingAccountDetailByAccountIdCore(int billingAccountId)
        {
            //May need to call a search to make sure that the account exists before calling this one since the error is pretty ugly.
            string result = await CallDuckCreek(DuckCreekServiceCallFactory.GetAccountSummaryRequest(billingAccountId));

            //Should check for exceptions like not found and throw
            return(BillingAccountDetailMapper.FromXml(result));
        }