public RESTableFixture() { OperationsTestsFlags = new OperationsTestsFlags(); ServiceProvider = new ServiceCollection() .AddRESTable() .AddJsonProvider() .AddSingleton(OperationsTestsFlags) .BuildServiceProvider(); Configurator = ServiceProvider .GetRequiredService <RESTableConfigurator>(); var client = ServiceProvider.GetRequiredService <RootClient>(); Context = new RESTableContext(client, ServiceProvider); Configurator.ConfigureRESTable(); }