private static async Task <ObjectResult> GetIndex(IListTenancies listTenanciesUseCase, List <string> tenancyRefs) { var controller = new TenanciesController(listTenanciesUseCase, null, null, null); var result = await controller.Get(tenancyRefs); 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; }
public TenancyInformationController(IGetTenancyByIdUseCase getByIdUseCase, IListTenancies listTenancies) { _getByIdUseCase = getByIdUseCase; _listTenancies = listTenancies; }