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),
            };
        }
示例#3
0
 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)
 {
 }
示例#7
0
 public ValidateTestFixture(DataStore dataStore, Format format, TestFhirServerFactory testFhirServerFactory)
     : base(dataStore, format, testFhirServerFactory)
 {
 }