Пример #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);
        }
Пример #2
0
        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);
        }
        private static async Task <ObjectResult> GetArrearsActionsDetails(IListAllArrearsActions listActionDiaryUseCase,
                                                                          string tenancyRef)
        {
            var controller = new TenanciesController(null, listActionDiaryUseCase, null, null);
            var result     = await controller.GetActionDiaryDetails(tenancyRef);

            return(result as OkObjectResult);
        }
Пример #4
0
        private static async Task <ObjectResult> GetAllTenancyDetailsForTenancyRef(ITenancyDetailsForRef tenancyDetailsForRefUseCase,
                                                                                   string tenancyRef)
        {
            var controller = new TenanciesController(null, null, null, tenancyDetailsForRefUseCase);
            var result     = await controller.GetTenancyDetails(tenancyRef);

            return(result as OkObjectResult);
        }