/Rhino.Etl.Tests/Fibonacci/Batch/BatchFibonacci.cs
http://github.com/ayende/rhino-etl · C# · 44 lines · 37 code · 4 blank · 3 comment · 2 complexity · ec56f5035095a1b8af38dc38edec9329 MD5 · raw file
- namespace Rhino.Etl.Tests.Fibonacci.Batch
- {
- using Core;
- using Errors;
- using Output;
- public class BatchFibonacci : EtlProcess
- {
- private readonly int max;
- protected int Max
- {
- get
- {
- return max;
- }
- }
- private readonly Should should;
- protected Should Should
- {
- get
- {
- return should;
- }
- }
- public BatchFibonacci(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 BatchFibonacciToDatabase());
- }
- }
- }