Skip to content

Commit

Permalink
tests: make GetQueryableWithData static
Browse files Browse the repository at this point in the history
  • Loading branch information
leynier committed May 21, 2022
1 parent 7a8e2d8 commit 0277cc3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Gateways.Api.Tests/Controllers/DevicesControllerTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public DevicesControllerTests()

private DevicesController Controller => new(deviceService.Object, mapper, config);

private IQueryable<Device> GetQueryableWithData(Gateway gateway, int count)
private static IQueryable<Device> GetQueryableWithData(Gateway gateway, int count)
{
var devices = new List<Device>();
for (int i = 0; i < count; i++)
Expand Down
2 changes: 1 addition & 1 deletion Gateways.Api.Tests/Controllers/GatewaysControllerTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public GatewaysControllerTests()

private GatewaysController Controller => new(gatewayService.Object, mapper);

private IQueryable<Gateway> GetQueryableWithData => new[]
private static IQueryable<Gateway> GetQueryableWithData => new[]
{
new Gateway { Name = "Gateway 1", IPv4 = "127.0.0.1" },
new Gateway { Name = "Gateway 2", IPv4 = "127.0.0.2" },
Expand Down

0 comments on commit 0277cc3

Please sign in to comment.