The service builds a playlist update plan from a list of track identifiers. After a recent PR, the report for a single call sometimes started to differ from the actually processed items, and in some scenarios the data changes between the first and repeated reads of the result.
BuildAsync method accepts an input sequence of identifiers and returns a PlaylistPlan.Accepted must contain normalized identifiers that passed validation and were accepted within the current call.Processed must reflect the number of valid input items that the method actually examined in order during this call.Skipped must reflect the number of valid items that did not make it into Accepted within the same call.BuildAsync, the contents of Accepted must not depend on further changes to the source collection or internal temporary structures.[" song-1 ", "song-1", " ", "song-2"]
Accepted more than once, while the source collection changes after the call.Accepted must return the same data as immediately after BuildAsync completed.8.0.204C# 12Task-based async without external servicesSystem, System.Linq, System.Collections.Generic, System.Threading, System.Threading.Tasks)Trim(), values that are empty after normalization are not considered validUse line comments to explain the problem, its impact, the fix and how to test it.