INNER CODE UNIT · C#

DynamicControllerTests

ttu/dotnet-fake-json-server · FakeServer.Test/DynamicControllerTests.cs:14

public class DynamicControllerTests
{
    [Fact]
    public void GetCollections()
    {
        var filePath = UTHelpers.Up();
        var ds = new DataStore(filePath);
        var apiSettings = Options.Create(new ApiSettings());
        var dsSettings = Options.Create(new DataStoreSettings());

        var controller = new DynamicController(ds, apiSettings, dsSettings);

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

        UTHelpers.Down(filePath);
    }

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…