Skip to content

Commit ee644fe

Browse files
authored
Return empty list of environment in Mock EnvironmentClient (#590)
1 parent 357e208 commit ee644fe

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

NGitLab.Mock/Clients/EnvironmentClient.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
using System.Collections.Generic;
33
using System.Threading;
44
using System.Threading.Tasks;
5+
using NGitLab.Mock.Internals;
56
using NGitLab.Models;
67

78
namespace NGitLab.Mock.Clients
@@ -40,7 +41,7 @@ public EnvironmentInfo Stop(int environmentId)
4041

4142
public GitLabCollectionResponse<EnvironmentInfo> GetEnvironmentsAsync(EnvironmentQuery query)
4243
{
43-
throw new NotImplementedException();
44+
return GitLabCollectionResponse.Create(Array.Empty<EnvironmentInfo>());
4445
}
4546

4647
public EnvironmentInfo GetById(int environmentId)

0 commit comments

Comments
 (0)