Пример #1
0
        private void AddByEndpoints(List <VerificationRecord> verificationRecords, Dictionary <string, string> result)
        {
            Dictionary <string, bool> endpointResults = new Dictionary <string, bool>();

            foreach (var verificationRecord in verificationRecords)
            {
                string endpointTag = _tagger.TagEndpoint(verificationRecord.Interaction);

                if (!endpointResults.ContainsKey(endpointTag))
                {
                    endpointResults.Add(endpointTag, true);
                }
                endpointResults[endpointTag] = endpointResults[endpointTag] && verificationRecord.Success;
            }

            foreach (var keyValuePair in endpointResults)
            {
                result.Add(keyValuePair.Key, keyValuePair.Value?"Success":"Failure");
            }
        }