Ejemplo n.º 1
0
        /// <summary>
        ///    Add results for successfull individual
        /// </summary>
        /// <param name="individualResults"></param>
        public void Add(IndividualResults individualResults)
        {
            Results.Add(individualResults);
            var runInfo = new IndividualRunInfo {
                Success = true
            };

            _individualRunInfos[individualResults.IndividualId] = runInfo;
        }
Ejemplo n.º 2
0
        /// <summary>
        ///    Add error message for failed individual
        /// </summary>
        /// <param name="individualId">Individual id</param>
        /// <param name="message">Error message</param>
        public void AddFailure(int individualId, string message)
        {
            var runInfo = new IndividualRunInfo
            {
                Success      = false,
                ErrorMessage = message
            };

            _individualRunInfos[individualId] = runInfo;
        }