public TestPaymentsAvailabilityStatement( Fifthweek.Shared.IExceptionHandler exceptionHandler, Microsoft.Practices.EnterpriseLibrary.TransientFaultHandling.ITransientErrorDetectionStrategy transientErrorDetectionStrategy, Fifthweek.Azure.ICloudStorageAccount cloudStorageAccount, ITimestampCreator timestampCreator, Fifthweek.Payments.Shared.IRequestProcessPaymentsService requestProcessPayments, Fifthweek.Api.Availability.ILastPaymentsRestartTimeContainer lastPaymentsRestartTimeContainer) { if (exceptionHandler == null) { throw new ArgumentNullException("exceptionHandler"); } if (transientErrorDetectionStrategy == null) { throw new ArgumentNullException("transientErrorDetectionStrategy"); } if (cloudStorageAccount == null) { throw new ArgumentNullException("cloudStorageAccount"); } if (timestampCreator == null) { throw new ArgumentNullException("timestampCreator"); } if (requestProcessPayments == null) { throw new ArgumentNullException("requestProcessPayments"); } if (lastPaymentsRestartTimeContainer == null) { throw new ArgumentNullException("lastPaymentsRestartTimeContainer"); } this.exceptionHandler = exceptionHandler; this.transientErrorDetectionStrategy = transientErrorDetectionStrategy; this.cloudStorageAccount = cloudStorageAccount; this.timestampCreator = timestampCreator; this.requestProcessPayments = requestProcessPayments; this.lastPaymentsRestartTimeContainer = lastPaymentsRestartTimeContainer; }
public TestSqlAzureAvailabilityStatement( Fifthweek.Shared.IExceptionHandler exceptionHandler, Microsoft.Practices.EnterpriseLibrary.TransientFaultHandling.ITransientErrorDetectionStrategy transientErrorDetectionStrategy, Fifthweek.Api.Availability.ICountUsersDbStatement countUsersDbStatement) { if (exceptionHandler == null) { throw new ArgumentNullException("exceptionHandler"); } if (transientErrorDetectionStrategy == null) { throw new ArgumentNullException("transientErrorDetectionStrategy"); } if (countUsersDbStatement == null) { throw new ArgumentNullException("countUsersDbStatement"); } this.exceptionHandler = exceptionHandler; this.transientErrorDetectionStrategy = transientErrorDetectionStrategy; this.countUsersDbStatement = countUsersDbStatement; }