public void InvalidDate_GetTaxByDate_ShouldThrow()
        {
            var municipality = MockModels.GetMunicipalityEntity();

            _municipalitiesRepository
            .Setup(e => e.GetByIdWithRelated(Guid.Empty))
            .Returns(Task.FromResult(municipality));

            var expectedTax = municipality.Taxes.Last();

            Assert.ThrowsAsync <NotFoundException>(() => _municipalitiesService.GetTaxByDate(Guid.Empty, new DateTime(2020, 1, 30)));
        }
        public async Task ValidDate_GetTaxByDate_ShouldReturnDailyTax()
        {
            var municipality = MockModels.GetMunicipalityEntity();

            _municipalitiesRepository
            .Setup(e => e.GetByIdWithRelated(Guid.Empty))
            .Returns(Task.FromResult(municipality));

            var expectedTax = municipality.Taxes.Last();

            var actualTaxValue = await _municipalitiesService.GetTaxByDate(Guid.Empty, new DateTime(2016, 1, 30));

            Assert.AreEqual(expectedTax.Value, actualTaxValue);
        }