public MunicipalityServiceTests() { _municipalityRepositoryMock = new Mock <IMunicipalityRepository>(); _schedulTaxRateFactory = new ScheduledTaxRateFactory(); _service = new MunicipalityService(_municipalityRepositoryMock.Object, _schedulTaxRateFactory); }
public MunicipalityService( IMunicipalityRepository municipalityRepositiory, IScheduledTaxRateFactory scheduledTaxRateFactory ) { _municipalityRepository = municipalityRepositiory ?? throw new ArgumentNullException(nameof(municipalityRepositiory)); _scheduledTaxRateFactory = scheduledTaxRateFactory ?? throw new ArgumentNullException(nameof(scheduledTaxRateFactory)); }