Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        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);
        }