/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

  1. namespace Rhino.Etl.Tests.Fibonacci.Bulk
  2. {
  3. using Core;
  4. using Errors;
  5. using Output;
  6. public class BulkInsertFibonacciToDatabaseFromConnectionStringSettings : EtlProcess
  7. {
  8. private readonly int max;
  9. private readonly Should should;
  10. public BulkInsertFibonacciToDatabaseFromConnectionStringSettings(int max, Should should)
  11. {
  12. this.max = max;
  13. this.should = should;
  14. }
  15. /// <summary>
  16. /// Initializes this instance.
  17. /// </summary>
  18. protected override void Initialize()
  19. {
  20. Register(new FibonacciOperation(max));
  21. if (should == Should.Throw)
  22. Register(new ThrowingOperation());
  23. Register(new FibonacciBulkInsertFromConnectionStringSettings());
  24. }
  25. }
  26. }