More Testing (#2683)

This commit is contained in:
Joe Milazzo 2024-02-02 17:12:37 -06:00 committed by GitHub
parent 4ce2b4343a
commit 685f7365e1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 168 additions and 36 deletions

View file

@ -10,7 +10,7 @@ namespace API.Services;
public static class ReviewService
{
public static IList<UserReviewDto> SelectSpectrumOfReviews(IList<UserReviewDto> reviews)
public static IEnumerable<UserReviewDto> SelectSpectrumOfReviews(IList<UserReviewDto> reviews)
{
IList<UserReviewDto> externalReviews;
var totalReviews = reviews.Count;
@ -42,8 +42,9 @@ public static class ReviewService
externalReviews = reviews;
}
return externalReviews;
return externalReviews.OrderByDescending(r => r.Score);
}
public static string GetCharacters(string body)
{
if (string.IsNullOrEmpty(body)) return body;