public void Arrange() { _levyCsvFormatter = new Mock <ITransactionFormatter>(); _levyExcelFormatter = new Mock <ITransactionFormatter>(); _nonLevyCsvFormatter = new Mock <ITransactionFormatter>(); _nonLevyExcelFormatter = new Mock <ITransactionFormatter>(); _levyCsvFormatter.Setup(x => x.DownloadFormatType).Returns(DownloadFormatType.CSV); _levyCsvFormatter.Setup(x => x.ApprenticeshipEmployerType).Returns(ApprenticeshipEmployerType.Levy); _levyExcelFormatter.Setup(x => x.DownloadFormatType).Returns(DownloadFormatType.Excel); _levyExcelFormatter.Setup(x => x.ApprenticeshipEmployerType).Returns(ApprenticeshipEmployerType.Levy); _nonLevyCsvFormatter.Setup(x => x.DownloadFormatType).Returns(DownloadFormatType.CSV); _nonLevyCsvFormatter.Setup(x => x.ApprenticeshipEmployerType).Returns(ApprenticeshipEmployerType.NonLevy); _nonLevyExcelFormatter.Setup(x => x.DownloadFormatType).Returns(DownloadFormatType.Excel); _nonLevyExcelFormatter.Setup(x => x.ApprenticeshipEmployerType).Returns(ApprenticeshipEmployerType.NonLevy); _paymentFormatterFactory = new EmployerFinance.Formatters.TransactionFormatterFactory(new List <ITransactionFormatter> { _levyCsvFormatter.Object, _levyExcelFormatter.Object, _nonLevyCsvFormatter.Object, _nonLevyExcelFormatter.Object }); }
public GetTransactionsDownloadQueryHandler( ITransactionFormatterFactory transactionsFormatterFactory, ITransactionRepository transactionRepository, IAccountApiClient accountApiClient) { _transactionsFormatterFactory = transactionsFormatterFactory; _transactionRepository = transactionRepository; _accountApiClient = accountApiClient; }
public GetTransactionsDownloadQueryHandler(ITransactionFormatterFactory transactionsFormatterFactory, ITransactionRepository transactionRepository) { _transactionsFormatterFactory = transactionsFormatterFactory; _transactionRepository = transactionRepository; }