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 HttpIntegrationTestFixture(DataStore dataStore, Format format, TestFhirServerFactory testFhirServerFactory) { EnsureArg.IsNotNull(testFhirServerFactory, nameof(testFhirServerFactory)); _dataStore = dataStore; _testFhirServerFactory = testFhirServerFactory; _resourceFormat = format switch { Format.Json => ResourceFormat.Json, Format.Xml => ResourceFormat.Xml, _ => throw new ArgumentOutOfRangeException(nameof(format), format, null), }; }
public EverythingOperationTestFixture(DataStore dataStore, Format format, TestFhirServerFactory testFhirServerFactory) : base(dataStore, format, testFhirServerFactory) { }
public HttpIntegrationTestFixture(DataStore dataStore, Format format, TestFhirServerFactory testFhirServerFactory) : base(dataStore, format, testFhirServerFactory) { }
public MemberMatchTestFixture(DataStore dataStore, Format format, TestFhirServerFactory testFhirServerFactory) : base(dataStore, format, testFhirServerFactory) { _tag = new Coding(string.Empty, Guid.NewGuid().ToString()); }
public CompartmentTestFixture(DataStore dataStore, Format format, TestFhirServerFactory testFhirServerFactory) : base(dataStore, format, testFhirServerFactory) { }
public ValidateTestFixture(DataStore dataStore, Format format, TestFhirServerFactory testFhirServerFactory) : base(dataStore, format, testFhirServerFactory) { }