PageRenderTime 283ms CodeModel.GetById 121ms app.highlight 1ms RepoModel.GetById 160ms app.codeStats 0ms

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

http://github.com/ayende/rhino-etl
C# | 29 lines | 23 code | 3 blank | 3 comment | 2 complexity | c1585baab4a8e8119b29022f55756eb9 MD5 | raw file
 1namespace Rhino.Etl.Tests.Fibonacci.Bulk
 2{
 3    using Core;
 4    using Errors;
 5    using Output;
 6
 7    public class BulkInsertFibonacciToDatabase : EtlProcess
 8    {
 9        private readonly int max;
10        private readonly Should should;
11
12        public BulkInsertFibonacciToDatabase(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 FibonacciBulkInsert());
27        }
28    }
29}