public void ConfigureSinkOptionsReadsEnlistInTransaction() { // Arrange var configSection = new MSSqlServerConfigurationSection(); configSection.EnlistInTransaction.Value = "true"; var sinkOptions = new MSSqlServerSinkOptions { EnlistInTransaction = false }; var sut = new SystemConfigurationSinkOptionsProvider(); // Act sut.ConfigureSinkOptions(configSection, sinkOptions); // Assert Assert.True(sinkOptions.EnlistInTransaction); }
public void ConfigureSinkOptionsReadsBatchSettings() { // Arrange var configSection = new MSSqlServerConfigurationSection(); configSection.EagerlyEmitFirstEvent.Value = "true"; var sinkOptions = new MSSqlServerSinkOptions { EagerlyEmitFirstEvent = false }; var sut = new SystemConfigurationSinkOptionsProvider(); // Act sut.ConfigureSinkOptions(configSection, sinkOptions); // Assert Assert.True(sinkOptions.EagerlyEmitFirstEvent); }