Exemplo n.º 1
0
        public async Task RealEstateAgentCalculationResultMappersTest()
        {
            var result = await GetClient().GetAll(true);

            var realEstateAgentCalculationResultMappers = RealEstateAgentCalculator.RealEstateAgentCalculationResultMappers(result);

            Assert.True(realEstateAgentCalculationResultMappers.Count() >= RealEstateAgentCalculator.NumberOfRealEstateAgent);
        }
Exemplo n.º 2
0
        public async Task <IActionResult> HousesWithGarden()
        {
            _realStateAgentList = await GetAllRealStateAgents(_realStateAgentList, "HousesWithGarden", true);

            _realEstateAgentCalculationResultMappers = RealEstateAgentCalculator.RealEstateAgentCalculationResultMappers(_realStateAgentList);

            var model = new RealEStateAgentViewModel
            {
                RealEstateAgentCalculation = _realEstateAgentCalculationResultMappers.ToList()
            };

            return(View(model));
        }