Hi all,
my version of the “GetMoviesByCountryAsync” methid is below:
public async Task<IReadOnlyList<MovieByCountryProjection>> GetMoviesByCountryAsync(
CancellationToken cancellationToken = default,
params string[] countries
)
{
var projectionFilter = Builders<Movie>.Projection
.Include(m => m.Title);
return await _moviesCollection
.Find(Builders<Movie>.Filter.In("Countries", countries))
.Project<MovieByCountryProjection>(projectionFilter)
.ToListAsync(cancellationToken);
}
The test result is fail:
String lengths are both 24. Strings differ at index 6.
Expected: “573a13f3f29313caabddf331”
But was: “573a1392f29313caabcd9d4f”
but the validation code is right.
What am I doing wrong?