/// <summary> /// Gets the reputation. /// </summary> /// <returns>A floating point value representing the reputation.</returns> public virtual float GetReputation() // 'virtual' to be easily stubbed. { if (Feedbacks == null || Feedbacks.Count == 0) { return(0); } return((float)Feedbacks.Average(f => f.Score)); }