예제 #1
0
        public async Task NoTaxSceduleForDate()
        {
            var request = new RetríeveMunicipalityTaxRequest {
                Municipality = "Vaerloese", TaxDate = new DateTime(2016, 1, 1)
            };
            var response = await businessMunicipalityTaxScheduleRetrieverEngine.RetríeveMunicipalityTax(request);

            Assert.True(response == null);
        }
예제 #2
0
        public async Task <ActionResult <decimal> > Get([FromQuery] RetríeveMunicipalityTaxRequest request)
        {
            // TODO implmement ExceptionHandlerFilter
            try
            {
                IRetríeveMunicipalityTaxResponse response = await businessMunicipalityTaxScheduleRetrieverEngine.RetríeveMunicipalityTax(request);

                if (response == null)
                {
                    return(NotFound());
                }
                return(Ok(response));
            }
            catch (Exception)
            {
                return(Problem());
            }
        }