Example #1
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);
        }
 public TenanciesController(IListTenancies listTenancies, IListAllArrearsActions listAllArrearsActions,
                            IListAllPayments listAllPayments, ITenancyDetailsForRef tenancyDetailsForRef)
 {
     this.listTenancies         = listTenancies;
     this.listAllArrearsActions = listAllArrearsActions;
     this.listAllPayments       = listAllPayments;
     this.tenancyDetailsForRef  = tenancyDetailsForRef;
 }