PageRenderTime 105ms CodeModel.GetById 32ms app.highlight 2ms RepoModel.GetById 30ms app.codeStats 0ms

/Rhino.Etl.Tests/Fibonacci/Bulk/BulkInsertFibonacciToDatabaseFromConnectionStringSettings.cs

http://github.com/ayende/rhino-etl
C# | 29 lines | 23 code | 3 blank | 3 comment | 2 complexity | 52036f50f642f81b281dbeb0e2b6c7d3 MD5 | raw file
 1namespace Rhino.Etl.Tests.Fibonacci.Bulk
 2{
 3    using Core;
 4    using Errors;
 5    using Output;
 6
 7    public class BulkInsertFibonacciToDatabaseFromConnectionStringSettings : EtlProcess
 8    {
 9        private readonly int max;
10        private readonly Should should;
11
12        public BulkInsertFibonacciToDatabaseFromConnectionStringSettings(int max, Should should)
13        {
14            this.max = max;
15            this.should = should;
16        }
17
18        /// <summary>
19        /// Initializes this instance.
20        /// </summary>
21        protected override void Initialize()
22        {
23            Register(new FibonacciOperation(max));
24            if (should == Should.Throw)
25                Register(new ThrowingOperation());
26            Register(new FibonacciBulkInsertFromConnectionStringSettings());
27        }
28    }
29}