Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 public TenanciesController(IListTenancies listTenancies, IListAllArrearsActions listAllArrearsActions,
                            IListAllPayments listAllPayments, ITenancyDetailsForRef tenancyDetailsForRef)
 {
     this.listTenancies         = listTenancies;
     this.listAllArrearsActions = listAllArrearsActions;
     this.listAllPayments       = listAllPayments;
     this.tenancyDetailsForRef  = tenancyDetailsForRef;
 }
Exemplo n.º 3
0
 public TenancyInformationController(IGetTenancyByIdUseCase getByIdUseCase, IListTenancies listTenancies)
 {
     _getByIdUseCase = getByIdUseCase;
     _listTenancies  = listTenancies;
 }