/// <summary> /// Handles a <see cref="EvaluationStatisticRequest"/> sent by a certain actor. /// </summary> /// <param name="sender">The sender.</param> private void HandleEvaluationStatisticRequest(IActorRef sender) { var statistic = new EvaluationStatistic( configurationCount: this._runResults.Count, totalEvaluationCount: this._runResults.Sum(configurationResults => configurationResults.Value.Count)); sender.Tell(statistic); }
public void ConfigurationCountIsSetCorrectly() { var message = new EvaluationStatistic(configurationCount: 3, totalEvaluationCount: 45); Assert.Equal(3, message.ConfigurationCount); }