/Rhino.Etl.Tests/Fibonacci/Output/OutputFibonacciToDatabase.cs
http://github.com/ayende/rhino-etl · C# · 30 lines · 24 code · 3 blank · 3 comment · 2 complexity · eebaee3b3a03b37ae0dbd6a33fefdfa3 MD5 · raw file
- namespace Rhino.Etl.Tests.Fibonacci.Output
- {
- using Core;
- using Errors;
- public class OutputFibonacciToDatabase : EtlProcess
- {
- private readonly int max;
- private readonly Should should;
- public readonly ThrowingOperation ThrowingOperation = new ThrowingOperation();
- public readonly FibonacciOutput OutputOperation = new FibonacciOutput();
- public OutputFibonacciToDatabase(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(ThrowingOperation);
- Register(OutputOperation);
- }
- }
- }