public HttpIntegrationTestFixture(DataStore dataStore, Format format, TestFhirServerFactory testFhirServerFactory)
        {
            EnsureArg.IsNotNull(testFhirServerFactory, nameof(testFhirServerFactory));

            TestFhirServer = testFhirServerFactory.GetTestFhirServer(dataStore, typeof(TStartup));

            ResourceFormat resourceFormat;

            switch (format)
            {
            case Format.Json:
                resourceFormat = ResourceFormat.Json;
                break;

            case Format.Xml:
                resourceFormat = ResourceFormat.Xml;
                break;

            default:
                throw new ArgumentOutOfRangeException(nameof(format), format, null);
            }

            TestFhirClient = TestFhirServer.GetTestFhirClient(resourceFormat);

            IsUsingInProcTestServer = TestFhirServer is InProcTestFhirServer;
        }
        public async Task InitializeAsync()
        {
            TestFhirServer = await _testFhirServerFactory.GetTestFhirServerAsync(_dataStore, typeof(TStartup));

            TestFhirClient = TestFhirServer.GetTestFhirClient(_resourceFormat);

            IsUsingInProcTestServer = TestFhirServer is InProcTestFhirServer;

            await OnInitializedAsync();
        }