private static async Task <ObjectResult> GetPaymentTransactionDetails(IListAllPayments listPaymentsUseCase, string tenancyRef) { var controller = new TenanciesController(null, null, listPaymentsUseCase, null); var result = await controller.PaymentTransactionDetails(tenancyRef); return(result as OkObjectResult); }
public TenanciesController(IListTenancies listTenancies, IListAllArrearsActions listAllArrearsActions, IListAllPayments listAllPayments, ITenancyDetailsForRef tenancyDetailsForRef) { this.listTenancies = listTenancies; this.listAllArrearsActions = listAllArrearsActions; this.listAllPayments = listAllPayments; this.tenancyDetailsForRef = tenancyDetailsForRef; }