internal bool CheckError(List <PropertyBagContents> expectedErrors)
        {
            var observedErrors  = _errorStore.GetEventsForUpload();
            int errorMatchCount = 0;

            foreach (var observedError in observedErrors)
            {
                foreach (var expectedError in expectedErrors)
                {
                    if (IsErrorPropertyBagContentsEqual(observedError.GetContents(), expectedError))
                    {
                        errorMatchCount++;
                    }
                }
            }

            if (errorMatchCount == expectedErrors.Count)
            {
                return(true);
            }

            return(false);
        }