/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
- namespace Rhino.Etl.Tests.Fibonacci.Bulk
- {
- using Core;
- using Errors;
- using Output;
- public class BulkInsertFibonacciToDatabase : EtlProcess
- {
- private readonly int max;
- private readonly Should should;
- public BulkInsertFibonacciToDatabase(int max, Should should)
- {
- this.max = max;
- this.should = should;
- }
- /// <summary>
- /// Initializes this instance.
- /// </summary>
- protected override void Initialize()
- {
- Register(new FibonacciOperation(max));
- if (should == Should.Throw)
- Register(new ThrowingOperation());
- Register(new FibonacciBulkInsert());
- }
- }
- }