public SqlServerFhirDataBulkOperationTests( SqlServerFhirStorageTestsFixture fixture) { _fixture = fixture; var operationsConfiguration = Substitute.For <IOptions <OperationsConfiguration> >(); operationsConfiguration.Value.Returns(new OperationsConfiguration()); _sqlServerFhirDataBulkOperation = new SqlImportOperation(_fixture.SqlConnectionWrapperFactory, new TestSqlServerTransientFaultRetryPolicyFactory(), _fixture.SqlServerFhirModel, operationsConfiguration, _fixture.SchemaInformation, NullLogger <SqlImportOperation> .Instance); }
public SqlServerBulkImportOperationTests() { var operationsConfiguration = Substitute.For <IOptions <OperationsConfiguration> >(); operationsConfiguration.Value.Returns(new OperationsConfiguration()); var schemaInformation = new SchemaInformation(SchemaVersionConstants.Min, SchemaVersionConstants.Max); SqlTransactionHandler sqlTransactionHandler = new SqlTransactionHandler(); SqlConnectionWrapperFactory sqlConnectionWrapperFactory = new SqlConnectionWrapperFactory(Substitute.For <SqlTransactionHandler>(), new SqlCommandWrapperFactory(), Substitute.For <ISqlConnectionFactory>()); var sqlServerTransient = Substitute.For <ISqlServerTransientFaultRetryPolicyFactory>(); _sqlServerFhirDataBulkOperation = new SqlImportOperation(sqlConnectionWrapperFactory, sqlServerTransient, Substitute.For <ISqlServerFhirModel>(), operationsConfiguration, schemaInformation, NullLogger <SqlImportOperation> .Instance); }