Skip to content

Commit

Permalink
Simplify collection initialization (IDE0028)
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalberger committed Nov 22, 2024
1 parent 54ba539 commit 744ec6b
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ public override BuildHttpClient CreateBuildClient(Uri collectionUrl, IAzureDevOp
});

mock.Setup(arg => arg.GetBuildWorkItemsRefsAsync(It.IsAny<string>(), It.IsAny<int>(), It.IsAny<int?>(), null, default))
.ReturnsAsync((string _, int _, int? _, object _, CancellationToken _) => new List<ResourceRef>
{
.ReturnsAsync((string _, int _, int? _, object _, CancellationToken _) =>
[
new() { Id = "42" },
});
]);

mock = this.Setup(mock);

Expand Down

0 comments on commit 744ec6b

Please sign in to comment.