/// <summary>
        /// Calls the GetMultipleMedicalValidationMessages method as defined in the service reference ServiceReference1
        /// which takes an array of strings as it's parameter, as well as a username and password for authentication purposes
        /// </summary>
        /// <param name="client"></param>
        /// <param name="vendorClaims"></param>
        /// <returns>ValidationResults as defined in VendorUploadService.Results</returns>
        public static ValidationResults GetMultiValidationErrors(Client client, string[] vendorClaims)
        {
            Stopwatch sw       = new Stopwatch();
            var       uploader = new ServiceReference1.ClaimImportServiceClient();

            //uploader.InnerChannel.OperationTimeout = new TimeSpan(0, 10, 0);  //Set previous to claim limit being set @ 20 to prevent timeouts
            uploader.Open();
            var results = new ValidationResults();

            sw.Start();
            try
            {
                results.MultiClaimValidationResponses = uploader.GetMultipleMedicalValidationMessages(client.Username,
                                                                                                      client.Password, vendorClaims);
                sw.Stop();
            }
            catch (Exception e)
            {
                results.Exceptions.Add(e);
                results.thrownException = true;
            }
            uploader.Close();
            results.whenUploaded  = DateTime.Now;
            results.timeToRespond = sw.Elapsed;
            return(results);
        }
        /// <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>
        /// Legacy, no longer needed.  Previous to requirements being further defined, any number of claims were allowed to upload, but on the client side of
        /// wvc it would timeout waiting for all those validations.  This test and GetMultiValidationErrors were both built previous to requirements update
        /// As currently stands, the client cannot be expected or asked to make any extra changes in their code, so the limit was set to 20 claims, so the
        /// timout problem is now moot.
        /// </summary>
        /// <param name="client"></param>
        /// <param name="vendorClaims"></param>
        /// <returns></returns>
        public static ValidationResults GetMultipleValidationResultsWithoutChanges(Client client, string[] vendorClaims)
        {
            Stopwatch sw       = new Stopwatch();
            var       uploader = new ServiceReference1.ClaimImportServiceClient();
            var       results  = new ValidationResults();

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