public FhirService(IFhirClient fhirClient, IFhirResourceValidator fhirResourceValidator) { EnsureArg.IsNotNull(fhirClient, nameof(fhirClient)); EnsureArg.IsNotNull(fhirResourceValidator, nameof(fhirResourceValidator)); _fhirClient = fhirClient; _fhirResourceValidator = fhirResourceValidator; }
public FhirService( IFhirClient fhirClient, IFhirResourceValidator fhirResourceValidator, IOptions <FhirConfiguration> fhirConfiguration) { EnsureArg.IsNotNull(fhirClient, nameof(fhirClient)); EnsureArg.IsNotNull(fhirResourceValidator, nameof(fhirResourceValidator)); EnsureArg.IsNotNull(fhirConfiguration, nameof(fhirConfiguration)); _fhirClient = fhirClient; _fhirResourceValidator = fhirResourceValidator; _fhirConfiguration = fhirConfiguration.Value; }