/// <summary>
        /// Built solely for testing purposes; initial build of project did not adhere to the requirements that multiple claim IDs could be passed as an argument
        /// to getValidationErrors.  For the first couple weeks of testing, only one claim ID could be sent at a time.  To expidite processes on the testing end,
        /// this method was designed to take a single batch number, calls the database and gets an array of all Claim IDs associated with that batch number,
        /// and then calls the GetMedicalValidationMessages multiple times, one for each element in the array.
        /// Since project was updated to fully meet requirements, this method is legacy
        /// This method makes reference to a non-production db as the Vendor API does not exist in production.  If needed, to switch this method to production
        /// database calls, comment out the line where claimsInfo is declared and initialized, and uncomment out the line directly below it
        /// </summary>
        /// <param name="client"></param>
        /// <param name="batchNum"></param>
        /// <returns></returns>
        public static ValidationResults GetMultiValidationErrors(Client client, string batchNum)
        {
            var uploader = new ServiceReference1.ClaimImportServiceClient();

            uploader.InnerChannel.OperationTimeout = new TimeSpan(0, 10, 0);
            uploader.Open();
            var results    = new ValidationResults();
            var claimsInfo = TestDatabaseCalls.GetClaimMedicalIDs(batchNum);                                // TEST REFERENCE -- NEEDS TO BE ALTERED BEFORE RELEASE TO PRODUCTION TEST SUITES

            //var claimsInfo = DatabaseCalls.GetClaimMedicalIDs(batchNum);                                  //PRODUCTION REFERENCE
            results.MultiClaimValidationResponses = new ApexValidationResponse[claimsInfo.Count];
            //results.claimValidationErrors = new ApexValidationResponse[claimsInfo.Count * 2];
            for (int i = 0; i < results.MultiClaimValidationResponses.Length; ++i)
            {
                results.MultiClaimValidationResponses[i] = uploader.GetMedicalValidationMessages(client.Username,
                                                                                                 client.Password, claimsInfo.Count < results.MultiClaimValidationResponses.Length && claimsInfo.Count <= i ? claimsInfo[i - claimsInfo.Count] : claimsInfo[i]);
            }
            uploader.Close();
            return(results);
        }
        /// <summary>
        /// Calls the getValidationMessages method that takes one single claim ID, as defined in the service reference ServiceReference1
        /// </summary>
        /// <param name="client"></param>
        /// <param name="vendorClaimID"></param>
        /// <returns>ValidationResults as defined in VendorUploadService.Results</returns>
        public static ValidationResults GetValidationErrors(Client client, string vendorClaimID)
        {
            var       uploader = new ServiceReference1.ClaimImportServiceClient();
            var       results  = new ValidationResults();
            Stopwatch sw       = new Stopwatch();

            sw.Start();
            try
            {
                results.ClaimValidationResponse = uploader.GetMedicalValidationMessages(client.Username,
                                                                                        client.Password,
                                                                                        vendorClaimID);
            }
            catch (Exception e)
            {
                results.Exceptions.Add(e);
                results.thrownException = true;
            }
            sw.Stop();
            results.timeToRespond = sw.Elapsed;
            results.whenUploaded  = DateTime.Now;
            return(results);
        }