Skip to content

Commit

Permalink
Update JsonFlatFileDataStore to version 2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ttu committed Jul 4, 2018
1 parent 84ef889 commit a942a08
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion FakeServer.Test/DynamicControllerTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public void GetCollections()

var controller = new DynamicController(ds, apiSettings);

var collections = controller.GetCollections();
var collections = controller.GetKeys();
Assert.Equal(3, collections.Count());

UTHelpers.Down(filePath);
Expand Down
2 changes: 1 addition & 1 deletion FakeServer.Test/FakeServer.Test.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="JsonFlatFileDataStore" Version="1.8.0" />
<PackageReference Include="JsonFlatFileDataStore" Version="2.0.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.6.1" />
<PackageReference Include="WebSocket4Net" Version="0.15.2" />
<PackageReference Include="xunit" Version="2.3.1" />
Expand Down
8 changes: 4 additions & 4 deletions FakeServer/Controllers/DynamicController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@ public DynamicController(IDataStore ds, IOptions<ApiSettings> settings)
}

/// <summary>
/// List collections
/// List keys
/// </summary>
/// <returns>List of collections</returns>
/// <returns>List of keys</returns>
[HttpGet]
[HttpHead]
public IEnumerable<string> GetCollections()
public IEnumerable<string> GetKeys()
{
return _ds.ListCollections();
return _ds.GetKeys().Select(e => e.Key);
}

/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion FakeServer/FakeServer.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
</ItemGroup>-->
<ItemGroup>
<PackageReference Include="GraphQL" Version="0.17.3" />
<PackageReference Include="JsonFlatFileDataStore" Version="1.8.0" />
<PackageReference Include="JsonFlatFileDataStore" Version="2.0.0" />
<PackageReference Include="Microsoft.ApplicationInsights.AspNetCore" Version="2.2.1" />
<PackageReference Include="Microsoft.AspNetCore" Version="2.0.2" />
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="2.0.3" />
Expand Down

0 comments on commit a942a08

Please sign in to comment.